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

New organisations are not returned by the /organisations endpoint #2169

Open
AgaDufrat opened this issue Oct 24, 2024 · 0 comments
Open

New organisations are not returned by the /organisations endpoint #2169

AgaDufrat opened this issue Oct 24, 2024 · 0 comments

Comments

@AgaDufrat
Copy link
Contributor

AgaDufrat commented Oct 24, 2024

Issue

Current MHCLG organisation is not created in https://github.com/alphagov/content-data-api/blob/main/app/domain/finders/all_organisations.rb and consequently not returned by the /organisations endpoint used by Content Data Admin.

Old MHCLG exists:

{:id=>"2e7868a8-38f5-4ff6-b62f-9a15d1c22d28", :name=>"Ministry of Housing, Communities & Local Government (2018 to 2021)", :acronym=>nil},

Cause

This is because Content Data considers it's document type as "substitute" https://content-data.publishing.service.gov.uk/metrics/government/organisations/ministry-of-housing-communities-local-government?date_range=past-30-days

Workaround

The data for current MHCLG documents is in Content Data and it's possible to filter by the organisation by amending query string parameters but it's not present in the Organisation filter options. https://content-data.publishing.service.gov.uk/content?submitted=true&date_range=past-30-days&search_term=&document_type=all&organisation_id=1390d07f-12b3-4f55-9dd5-fec5fd9e3649

Source: https://govuk.zendesk.com/agent/tickets/5941654

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant