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

[SDESK-5906] ingest of json event format #1566

Merged

Conversation

dev-tsoni
Copy link
Contributor

No description provided.

@dev-tsoni
Copy link
Contributor Author

This is the item getting returned from parse function.
[{'current_version': 6374718192158218, 'internal_note': 'TEST Internal note', 'name': 'TEST Event name', 'state': 'scheduled', 'definition_short': 'TEST Description', 'links': [], 'definition_long': 'TEST Long description', 'guid': '835d5175-a2bc-41ad-a906-baf3f2281a5c', 'type': 'event', 'occur_status': {'label': 'Planned, occurs certainly', 'qcode': 'eocstat:eos5', 'name': 'Planned, occurs certainly'}, 'slugline': 'TEST slugline', 'ednote': 'TEST editorial note', 'event_contact_info': [{'is_active': True, '_updated': '2019-08-29T13:01:54+0000', 'mobile': [], 'first_name': 'Jan', 'last_name': 'Christian Kolstø', '_created': '2019-08-29T13:01:54+0000', 'public': True, '_id': '5d67ccc2fdf5baac5c93745c', 'contact_phone': [{'is_active': True, 'usage': '', 'number': '92056081', 'public': True}], 'contact_email': ['jck@kud.dep.no']}], 'item_id': '835d5175-a2bc-41ad-a906-baf3f2281a5c', 'anpa_category': [{'qcode': 'n', 'language': 'nb-NO', 'name': 'Nyhetstjenesten', 'selection_type': 'multi selection'}], 'dates': {'tz': 'Europe/Prague', 'start': datetime.datetime(2021, 3, 1, 14, 0, 41, tzinfo=<UTC>), 'end': datetime.datetime(2021, 3, 1, 15, 0, 41, tzinfo=<UTC>)}, 'subject': [{'name': 'Sport', 'qcode': 'Sport', 'scheme': 'category', 'service': {'s': 1, 't': 1, 'e': 1, 'm': 1, 'n': 1, 'i': 1}}, {'name': 'Skoler', 'qcode': '05005000', 'scheme': 'subject_custom'}, {'name': 'Utdanning', 'qcode': '05000000', 'scheme': 'subject_custom'}, {'name': 'Fotball', 'qcode': '15054000', 'scheme': 'subject_custom'}, {'name': 'Innenriks', 'qcode': 'Innenriks', 'scheme': 'category', 'service': {'s': 1, 'j': 1, 't': 1, 'e': 1, 'm': 1, 'n': 1, 'i': 1}}], '_created': '2021-01-25T14:31:52+0000', '_updated': '2021-01-25T14:32:01+0000', 'versioncreated': datetime.datetime(2021, 1, 25, 14, 32, 1, tzinfo=<UTC>), 'firstcreated': datetime.datetime(2021, 1, 25, 14, 31, 52, tzinfo=<UTC>)}]

@dev-tsoni dev-tsoni requested a review from MarkLark86 April 14, 2021 00:36
@MarkLark86 MarkLark86 added this to the 2.3 milestone Apr 14, 2021
@dev-tsoni dev-tsoni requested a review from MarkLark86 April 15, 2021 04:00
@dev-tsoni dev-tsoni requested a review from MarkLark86 April 20, 2021 06:03
@dev-tsoni dev-tsoni merged commit 37d88c1 into superdesk:develop Apr 20, 2021
@MarkLark86 MarkLark86 changed the title Sdesk 5906 ingest of json event format [SDESK-5906] ingest of json event format Jun 16, 2021
@MarkLark86 MarkLark86 added the merged Merged into release branch label Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged Merged into release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants