CHANGELOG.md in ecoportal-api-v2-0.8.13 vs CHANGELOG.md in ecoportal-api-v2-0.8.14
- old
+ new
@@ -1,13 +1,50 @@
# Change Log
All notable changes to this project will be documented in this file.
-## [0.8.13] - 2021-08-xx
+## [0.8.14] - 2021-09-xx
### Added
+ - `Ecoportal::API::Common::Content::CollectionModel`
+ - `#_doc_pos` for clarity
+ - `#include?` to check if an element is present in the collection
+ - `Ecoportal::API::V2::Page::Stage#section?` check if section belongs to stage
+ - `Ecoportal::API::V2::Page::Sections`
+ - `#get_by_id`
+ - `#unattached` sections that are not attached to any stage
+ - `Ecoportal::API::V2::Page::Section`
+ - `#add_component` **added** parameter `before`: to cover case where you want to add it at the beginning
+ - `#component?` **widened** parameter type
+ - `#stages` stages where this section is attached
+ - `attached?` whether or not the section is attached
+ - `Ecoportal::API::V2::Page::Component`
+ - `#attached?` whether or not the field is attached to some section
+ - `#multi_section?` if the field is attached to more than one section :/
+ - **added** support for `forces`
+ - `Ecoportal::API::V2::Page::Force`
+ - `Ecoportal::API::V2::Page::Forces`
+ - `Ecoportal::API::V2::Page::Force::Binding`
+ - `Ecoportal::API::V2::Page::Force::Bindings`
+ - **added** shortcut to `#ooze` throughout all the model
+ - **validations** in some methods
+ - `Ecoportal::API::V2::Page::Stage#add_section`: section should be in `ooze.sections`
+ - `Ecoportal::API::V2::Page::Section#add_component`: component should be in `ooze.components`
+ - `Ecoportal::API::V2::Page::Force::Bindings#add`:
+ - section to be in `ooze.sections`
+ - component to be in `ooze.components`
+ - `Ecoportal::API::V2::Pages::PageStage#as_update` on page instances, it checks that
+ - Fields do not belong to more than one section
+ - Fields belong at least to one section
+ - Sections belong to at least one stage
+
### Changed
### Fixed
- - `Ecoportal::API::V2::Stage::Sections`
+ - `Ecoportal::API::Common::Content::ArrayModel#insert_one` was not inserting when not found. Should insert at least at the end.
+
+## [0.8.13] - 2021-09-03
+
+### Fixed
+ - `Ecoportal::API::V2::Page::Sections`
- `weight` fixing should only happen on entire page, **not** on stage sections that could change the order of section shared with other stages
- `#scope_weight` was not excluding the section when using `weight` of the last one
- Several classes with `embeds_many` were performing the `ordering` of those elements in the wrong way
- `Ecoportall::API::Common::Content::DoubleModel`
- `#replace_original_doc` had a couple of typos