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

CMS-338: publish tab #70

Draft
wants to merge 7 commits into
base: alpha
Choose a base branch
from
Draft

CMS-338: publish tab #70

wants to merge 7 commits into from

Conversation

diego-oxd
Copy link
Collaborator

@diego-oxd diego-oxd commented Jan 4, 2025

Jira Ticket

CMS-338

Description

Frontend changes

  • updated publishTab page to display proper data fetched from the backend.
  • The page will show a list of park-feature pairs (Features that have dates ready to be published)

Backend changes

  • added 2 new endpoints:
    • /api/ready-to-publish - will return all the park-feature pairs that have dates ready to be published based on season.approved and season.readyToPublish
    • /api/publish-to-api - will do 2 things
      1. Mark all the active dates for the feature-year involved as inactive
      2. Create new records for the dates in Strapi that match what was entered in the staff portal
  • added new helper methods to create, retrieve, and update data in Strapi.

Need to add 2 new environment variables:

  1. STRAPI_TOKEN - strapi token to authenticate requests to the Strapi API. Generated in strapiURL/admin/settings/api-tokens
  2. STRAPI_URL - the URL of the Strapi API (changes depending on the environment)

@diego-oxd diego-oxd marked this pull request as ready for review January 6, 2025 23:08
@diego-oxd diego-oxd marked this pull request as draft January 6, 2025 23:09
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.

1 participant