Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RW-831] POST API #723

Open
wants to merge 107 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
a303c3b
chore: add json schema validator
orakili Feb 13, 2024
23de2f7
fix: only save as embargoed when attempting to publish a report with …
orakili Feb 13, 2024
46b9f54
chore: skip text cleaning when empty string
orakili Feb 13, 2024
1a262ef
feat: add pending and refused statuses to reports
orakili Feb 13, 2024
5561531
feat: first prototype of the POST API
orakili Feb 13, 2024
490a7b9
chore: enable reliefweb_post_api module
orakili Feb 13, 2024
dc049ee
Merge branch 'develop' into feature/RW-831-post-api
orakili Feb 13, 2024
951f15c
feat: Add an override to allow PUT on the new API handler in Drupal.
cafuego Feb 20, 2024
d3ff3a0
fix: cafuego cannot type good
cafuego Feb 20, 2024
82bc479
Merge pull request #728 from UN-OCHA/cafuego/rw-892-api-v2
orakili Feb 21, 2024
3bd84a3
refactor: use custom entity for providers
orakili Feb 23, 2024
502e815
fix: rare spacing issue
orakili Feb 23, 2024
354190d
Merge branch 'develop' into feature/RW-831-post-api
orakili Feb 23, 2024
1de4747
chore: fixes, improvements and schema route
orakili Feb 25, 2024
0cd9f11
fix: schema route
orakili Feb 26, 2024
13d3db2
Merge branch 'develop' into feature/RW-831-post-api
orakili Feb 27, 2024
0ce0d0e
chore: update default document UUID namespace to use one derived from…
orakili Feb 27, 2024
dfe9a93
Merge branch 'develop' into feature/RW-831-post-api
orakili Feb 28, 2024
1cd8e46
feat: add field to allow to set the default status of submitted conte…
orakili Feb 28, 2024
8070964
Merge branch 'develop' into feature/RW-831-post-api
orakili Mar 4, 2024
2fee61e
feat: add simple webhook system for the post api
orakili Mar 5, 2024
3d9e61d
chore: check that the appname parameter is present
orakili Mar 11, 2024
ebc2776
Merge branch 'develop' into feature/RW-831-post-api
orakili Mar 11, 2024
f6f9972
fix: no need to hit drupal for the post api json schemas
orakili Mar 11, 2024
277b296
feat: handle rate limiting
orakili Mar 14, 2024
e494d86
Merge branch 'develop' into feature/RW-831-post-api
orakili Mar 18, 2024
998997e
Merge branch 'develop' into feature/RW-831-post-api
orakili Apr 2, 2024
d7c13b6
fix: allow unicode URLs and text
orakili Apr 2, 2024
c81e4d6
Merge branch 'develop' into feature/RW-831-post-api
orakili Apr 9, 2024
8b896ad
feat: add notify field to post api schema to allow publication notifi…
orakili Apr 9, 2024
d6abfd6
Merge branch 'develop' into feature/RW-831-post-api
orakili Apr 10, 2024
8d5fae2
Merge branch 'develop' into feature/RW-831-post-api
orakili Apr 25, 2024
d0678c4
feat: add new API option as origin of reports
orakili Apr 25, 2024
d3e0c57
feat: set the origin of reports submitted via the API to API
orakili Apr 25, 2024
85266ee
feat: only show API as possible origin for report submitted via the A…
orakili Apr 25, 2024
ca0e654
feat: add a column with the origin and a filter for the origin in the…
orakili Apr 25, 2024
4f8bc42
feat: only show the buttons for the extra statuses related to API sub…
orakili Apr 25, 2024
ed84521
feat: add the reviewer information in the report moderation backend
orakili Apr 25, 2024
bd852f3
Merge branch 'develop' into feature/RW-831-post-api
orakili Apr 26, 2024
5324bb1
feat: skip processing of refused entities
orakili Apr 26, 2024
18bebe0
chore: latest coding standards
orakili May 2, 2024
523beca
Merge branch 'develop' into feature/RW-831-post-api
orakili May 2, 2024
a30347a
feat: Post API for jobs
attiks May 10, 2024
51a75c9
feat: Post API for jobs
attiks May 10, 2024
e7bfcb1
Update html/modules/custom/reliefweb_post_api/schemas/v2/job.json
attiks May 13, 2024
e026ac4
Update html/modules/custom/reliefweb_post_api/schemas/v2/job.json
attiks May 13, 2024
1943e41
Update html/modules/custom/reliefweb_post_api/schemas/v2/job.json
attiks May 13, 2024
6285c7c
Update html/modules/custom/reliefweb_post_api/schemas/v2/job.json
attiks May 13, 2024
f312ba0
Update html/modules/custom/reliefweb_post_api/schemas/v2/job.json
attiks May 13, 2024
630894c
Update html/modules/custom/reliefweb_post_api/schemas/v2/report.json
attiks May 13, 2024
90e6799
Update html/modules/custom/reliefweb_post_api/schemas/v2/job.json
attiks May 13, 2024
d88f81c
Update html/modules/custom/reliefweb_post_api/schemas/v2/job.json
attiks May 13, 2024
50b1750
Update html/modules/custom/reliefweb_post_api/src/Plugin/reliefweb_po…
attiks May 13, 2024
3fb89a0
Update html/modules/custom/reliefweb_post_api/src/Plugin/reliefweb_po…
attiks May 13, 2024
3257b35
chore: Fix feedback on job api
attiks May 13, 2024
5c70c1b
feat: Add training to the API
attiks May 13, 2024
6b9f26c
Merge branch 'develop' into feature/RW-831-post-api
orakili May 14, 2024
1b22693
fix: job specs: ensure the city field is only allowed when there is a…
orakili May 15, 2024
78cd0ed
chore: reorder fields in job plugin to reflect specs and mandatory/op…
orakili May 15, 2024
9bf118f
fix: indentation of training specs
orakili May 15, 2024
aa700ea
refactor: training specs - adjust field names, descriptions and limit…
orakili May 15, 2024
f50ccd7
chore: reorder fields in job plugin to reflect specs and mandatory/op…
orakili May 15, 2024
4b0d5e7
fix: job specs - description of some fields that accept only a single ID
orakili May 15, 2024
a11ffdf
fix: format field name in condition for training specs
orakili May 15, 2024
8f1c12a
Merge branch 'develop' into feature/RW-831-post-api
orakili May 15, 2024
5b3cb0d
fix: revision timestamp and entity owner when updating content via th…
orakili May 15, 2024
766cb92
chore: add field_post_api_provider to job and training
orakili May 15, 2024
904c394
Merge branch 'develop' into feature/RW-831-post-api
orakili May 16, 2024
b7c92c0
test: job and training post api
attiks May 16, 2024
e27e355
Merge branch 'feature/RW-831-post-api' of github.com:UN-OCHA/rwint9-s…
attiks May 16, 2024
a27f19d
Merge branch 'develop' into feature/RW-831-post-api
attiks May 16, 2024
f6ef9d7
Merge branch 'develop' into feature/RW-831-post-api
orakili May 22, 2024
f8f7a38
Merge branch 'develop' into feature/RW-831-post-api
orakili May 29, 2024
04458bd
fix: change report schema additionalProperties to unevaluatedProperti…
orakili Jun 24, 2024
7ac90f2
chore: add missing method in plugin interface and add some comments a…
orakili Jun 24, 2024
7bf9418
feat: add uuid and filename fields for attachmentsin report POST API …
orakili Jun 24, 2024
b42f494
feat: add queue that stores unique submissions based on their uuid
orakili Jul 1, 2024
ab84339
refactor: notify providers after data is indexed in the API
orakili Jul 1, 2024
28c0c0e
fix: ensure the POST API responses are always JSON
orakili Jul 1, 2024
066d0af
Revert "fix: ensure the POST API responses are always JSON"
orakili Jul 1, 2024
91ca9e8
fix: tests
orakili Jul 1, 2024
26a9cd7
Merge branch 'develop' into feature/RW-831-post-api
attiks Jul 4, 2024
3f1091b
feat: add field to skip the post api queue and process the submission…
orakili Jul 5, 2024
e10ed77
Merge branch 'feature/RW-831-post-api' into feature/RW-831-post-api-i…
orakili Jul 5, 2024
fdec035
Merge branch 'develop' into feature/RW-831-post-api
orakili Jul 5, 2024
8e84586
chore: add helper to map URLs to help with test envs
orakili Jul 10, 2024
092d9da
Merge pull request #845 from UN-OCHA/feature/RW-831-post-api-integration
orakili Aug 1, 2024
f7b36b8
Merge branch 'develop' into feature/RW-831-post-api
orakili Aug 1, 2024
aec371d
fix: prevent document UUID mismatch between endpoint and data
orakili Aug 1, 2024
13438a1
chore: change additionalProperties to unevaluatedProperties for train…
orakili Aug 1, 2024
d458ade
chore: make career category required in post api job schema and some …
orakili Aug 4, 2024
bb3a6e7
Merge branch 'develop' into feature/RW-831-post-api
orakili Aug 4, 2024
10a9230
Merge branch 'develop' into feature/RW-831-post-api
orakili Aug 5, 2024
118271c
Merge branch 'develop' into feature/RW-831-post-api
orakili Oct 2, 2024
377d2b5
chore: update to match latest coding standards changes
orakili Oct 2, 2024
292911b
Merge branch 'develop' into feature/RW-831-post-api
orakili Oct 3, 2024
a5933b9
Merge branch 'develop' into feature/RW-831-post-api
orakili Nov 4, 2024
fd74f3f
Merge branch 'develop' into feature/RW-831-post-api
orakili Nov 5, 2024
3c8a4cc
fix: reliefweb_api hook in post API to avoid issues when re-indexing …
orakili Nov 6, 2024
64b53ad
docs: enhance descriptions in api schema
lazysoundsystem Nov 26, 2024
291c653
docs: add hyphens
lazysoundsystem Nov 26, 2024
a7aa346
docs: clarify descriptions
lazysoundsystem Nov 27, 2024
a6d1eba
docs: consistency
lazysoundsystem Nov 27, 2024
f60fa7e
docs: add more descriptions from the forms on the site
lazysoundsystem Nov 27, 2024
e3a8d2a
docs: consistency
lazysoundsystem Nov 27, 2024
bb4cc2b
Merge branch 'develop' into feature/RW-831-post-api
orakili Dec 2, 2024
84a3ef5
Merge pull request #954 from UN-OCHA/RW-831-post-api-schema-descriptions
lazysoundsystem Dec 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"league/commonmark": "^2.2",
"league/html-to-markdown": "^5.0",
"lolli42/finediff": "^1.0",
"opis/json-schema": "^2.2",
"orakili/composer-drupal-info-file-patch-helper": "^1",
"pelago/emogrifier": "^7.0",
"reliefweb/api-indexer": "^v2.8",
Expand Down
194 changes: 192 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion config/core.entity_form_display.node.report.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ dependencies:
- field.field.node.report.field_origin
- field.field.node.report.field_origin_notes
- field.field.node.report.field_original_publication_date
- field.field.node.report.field_post_api_provider
- field.field.node.report.field_primary_country
- field.field.node.report.field_source
- field.field.node.report.field_theme
Expand All @@ -34,8 +35,8 @@ dependencies:
- datetime
- inline_entity_form
- path
- reliefweb_files
- reliefweb_fields
- reliefweb_files
- text
id: node.report.default
targetEntityType: node
Expand Down Expand Up @@ -196,6 +197,7 @@ content:
collapsible: false
collapsed: false
revision: false
removed_reference: optional
third_party_settings: { }
field_headline_summary:
type: string_textarea
Expand Down Expand Up @@ -229,6 +231,7 @@ content:
collapsible: false
collapsed: true
revision: false
removed_reference: optional
third_party_settings: { }
field_language:
type: options_buttons
Expand Down Expand Up @@ -374,6 +377,7 @@ content:
third_party_settings: { }
hidden:
created: true
field_post_api_provider: true
field_vulnerable_groups: true
langcode: true
promote: true
Expand Down
Loading