Skip to content

Conversation

@ylyangtw
Copy link
Contributor

I have tested the api PR with running frontend locally. Functions seem to be working.

@ylyangtw ylyangtw linked an issue Sep 17, 2025 that may be closed by this pull request
return endpoint_response


# /pdl/titles/title-i/subtitles/subtitle-a/map:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe these eliminated endpoints are now handled by other database endpoints, right? Can you confirm @sandeep-ps ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's been removed for now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we are not using the /map endpoints in the frontend.

return data_json


# /pdl/titles/title-ii/programs/csp/map
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removed endpoints need to be removed from pdl.yaml too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. It's removed.

@navarroc
Copy link
Contributor

Overall I don't see any issues created by removing the unused JSON files. Most were not used anywhere, a few still had API calls, but I don't see them being used on the frontend. My guess is they were replaced by another endpoint that returned similar data.

@sandeep-ps
Copy link
Member

We can also remove the JSON files in the data/landingpage folder as those are also being served from the database.

@sandeep-ps
Copy link
Member

The rest of the JSON file removals and updating the YAML file looks good.

@sandeep-ps
Copy link
Member

sandeep-ps commented Nov 12, 2025

I tested this PR by both running all the endpoints using Postmand and running the web app locally and briefly visiting most of the pages. Apart from the suggestion about the CHANGELOG entry, this looks good to me. I will also suggest that with the endpoints getting removed, and following the semantic versioning, the next API release would be 1.0.0. Thanks.

Copy link
Member

@sandeep-ps sandeep-ps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. Thanks.

@navarroc navarroc merged commit 1df6884 into develop Dec 5, 2025
1 check passed
@navarroc navarroc deleted the 345-task-clean-up-unused-json-file-reader-functions branch December 5, 2025 19:27
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

Successfully merging this pull request may close these issues.

[Task] Clean up unused JSON file reader functions

4 participants