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

versioning support for Fides #5435

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

versioning support for Fides #5435

wants to merge 4 commits into from

Conversation

gilluminate
Copy link
Contributor

@gilluminate gilluminate commented Oct 29, 2024

Closes #HJ-30

Description Of Changes

  • Provides manual script for updating the version of all of our projects.
  • Updates FidesJS to pull from the package.json version as part of the window.Fides object
  • Aligns all versions to the current version for future release support
  • Adds new /api/health endpoint to the Privacy Center with FidesJS and Privacy Center versions as response, similar to other ../health endpoints.

Steps to Confirm

  • Run turbo version -- 2.48.1 from the /clients directory
  • Note that all versions have been updated
  • Run FidesJS demo from Privacy Center
  • Run Fides.version from the console log
  • Note that the new version 2.48.1 is returned
  • Visit http://localhost:3001/api/health and notice that 2.48.1 is returned

Pre-Merge Checklist

  • Issue Requirements are Met
  • Update CHANGELOG.md
  • Update window.Fides documentation
  • Update Release notes and inform release manager(s) of the new step

Copy link

vercel bot commented Oct 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fides-plus-nightly ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 8, 2025 7:21pm

Copy link

cypress bot commented Oct 29, 2024

fides    Run #11672

Run Properties:  status check passed Passed #11672  •  git commit 00af14abb6 ℹ️: Merge 9c692c2c63530c57a1df869cfb78df377660805f into 483d7984e996af447e37e1bd4cc5...
Project fides
Branch Review refs/pull/5435/merge
Run status status check passed Passed #11672
Run duration 00m 48s
Commit git commit 00af14abb6 ℹ️: Merge 9c692c2c63530c57a1df869cfb78df377660805f into 483d7984e996af447e37e1bd4cc5...
Committer Jason Gill
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 4
View all changes introduced in this branch ↗︎

Copy link
Contributor

@NevilleS NevilleS left a comment

Choose a reason for hiding this comment

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

Couple comments

clients/privacy-center/pages/api/fides-js.ts Outdated Show resolved Hide resolved
@@ -111,6 +113,7 @@ export default async function handler(
// Load the configured consent options (data uses, defaults, etc.) from environment
const environment = await loadPrivacyCenterEnvironment();
const serverSettings = await loadServerSettings();
const { version } = npmPackage;
Copy link
Contributor

Choose a reason for hiding this comment

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

To suggest a bit of scope creep - this is technically the privacy-center version (not fides-js). We could also expose the privacy-center version through a simple /health API route as well, which would be helpful.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point and suggestion

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, got this working at http://localhost:3001/api/health

@gilluminate gilluminate requested a review from NevilleS October 31, 2024 22:21
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.

2 participants