ecoportal-api-v2 0.8.28 → 0.8.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63af2e7f488cf3c0494395dc7a3f6a59c3bc154bd77d512fb0d2f3df66add5e8
4
- data.tar.gz: 698cc907116f20832b9035f6cdd211dcf38ac2514fb88311ed1bb03571afe365
3
+ metadata.gz: ca7591fd58fc849aefad7508d07e7902d5016ccaa19642dc7f8bb94b2ad445ca
4
+ data.tar.gz: c0a76091ed2702c29973d7295654f447425bf8e819e9684913bc71132eeccc9a
5
5
  SHA512:
6
- metadata.gz: d4e5805dd79d4869d4d665f9c80bde89d0835423fc696867a997512787950fa04533c0b5dcd5a76385d6561ad67cfd9e3e4ba945cf6c30ebf1be26f76bab24b7
7
- data.tar.gz: 5d8d34f560372d2d695ea6f2b54d5aa427524beebee0809e4de3c9b8ce7ff0dab088483cea5545262628eda98202163b112ade9bbb60f28fa6c5711e69c01ec9
6
+ metadata.gz: aab5c8003ceb2d0bfc71169f9a2bcda26cb37253cad9a6ec277309c4d2c6bb1a3e4a4fc8717b69286a81b4b6cf43b8e3c969267171f5d4b529fefbe1c85e2da8
7
+ data.tar.gz: 96d45a7aba715ea08eb0b96f6920f2dae25a8f27383f460e4883bf79233a9efb2a26bea10025d7b8a7931b3450c9650e1518da52044c90e03f8edfcbba8f9058
data/CHANGELOG.md CHANGED
@@ -1,15 +1,25 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [0.8.28] - 2022-05-31
4
+ ## [0.8.29] - 2022-06-xx
5
5
 
6
6
  ### Added
7
- - `Ecoportal::API::V2::Page::Component::File` added `label`
8
- - `Ecoportal::API::V2::Page::Component::Image` added `upload_id` and `file_file_name`
7
+ - `Ecoportal::API::V2::Page::Component::ActionField#permitted_person_schema_ids`
8
+ - Integration for the new feature
9
+ - `Ecoportal::API::V2::Pages::PageStage#uid` new method for directly rendering the uid
9
10
 
10
11
  ### Changed
12
+ - `Ecoportal::API::V2::Page::Component::PeopleField#configure_permits`
13
+ - Allow for `can_view` to prevent unnecessary errors
11
14
 
12
15
  ### Fixed
16
+ - `Ecoportal::API::V2::Page::PermissionFlags#configure` fixed typo
17
+
18
+ ## [0.8.28] - 2022-05-31
19
+
20
+ ### Added
21
+ - `Ecoportal::API::V2::Page::Component::File` added `label`
22
+ - `Ecoportal::API::V2::Page::Component::Image` added `upload_id` and `file_file_name`
13
23
 
14
24
  ## [0.8.27] - 2022-04-25
15
25
 
@@ -7,7 +7,8 @@ module Ecoportal
7
7
  passboolean :create_actions
8
8
  passthrough :required_number_of_completed_actions
9
9
  passboolean :permits_and_rules_integration, :add_subscribed, :add_subscribed_to_tasks
10
-
10
+ passarray :permitted_person_schema_ids, order_matters: false
11
+
11
12
  embeds_many :actions, klass: "Ecoportal::API::V2::Page::Component::Action", order_key: :weight
12
13
 
13
14
  # Adds a task with `name` short description
@@ -121,6 +121,8 @@ module Ecoportal
121
121
  self.apply_attached_people_permissions_to = "current_stage"
122
122
  when :can_edit
123
123
  self.attached_people_permissions_editable = true
124
+ when :can_view
125
+ # do nothing
124
126
  else
125
127
  flags.push(cnf)
126
128
  end
@@ -69,7 +69,7 @@ module Ecoportal
69
69
  when :subscribed_to_tasks
70
70
  self.subscribed_to_tasks = val
71
71
  else
72
- residual.push(cnf)
72
+ residual.push(key)
73
73
  end
74
74
  end
75
75
  end
@@ -10,6 +10,13 @@ module Ecoportal
10
10
  #embeds_many :permits, klass: "Ecoportal::API::V2::Page::Permit"
11
11
  passarray :force_errors, :subtags, order_matters: false
12
12
 
13
+ # @return [String] unique id
14
+ def uid
15
+ if counter = mould_counter
16
+ counter.render
17
+ end
18
+ end
19
+
13
20
  # @return [String] `id` of the stage we got the data of.
14
21
  def current_stage_id
15
22
  doc.dig("active_stage", "id") || doc["current_stage_id"]
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GEM2_VERSION = "0.8.28"
3
+ GEM2_VERSION = "0.8.29"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecoportal-api-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.28
4
+ version: 0.8.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-31 00:00:00.000000000 Z
11
+ date: 2022-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler