Skip to content

Conversation

speaker-ender
Copy link
Contributor

@speaker-ender speaker-ender commented Sep 4, 2025

Closes ENG-1305

Description Of Changes

Fixing location select props and display within table

Code Changes

  • list your code changes here

Steps to Confirm

  1. Confirm that the location select input no longer accepts any value
  2. Confirm that the regions table value displays correctly when values are set

Pre-Merge Checklist

  • Issue requirements met
  • All CI pipelines succeeded
  • CHANGELOG.md updated
    • Add a db-migration This indicates that a change includes a database migration label to the entry if your change includes a DB migration
    • Add a high-risk This issue suggests changes that have a high-probability of breaking existing code label to the entry if your change includes a high-risk change (i.e. potential for performance impact or unexpected regression) that should be flagged
    • Updates unreleased work already in Changelog, no new entry necessary
  • Followup issues:
    • Followup issues created
    • No followup issues
  • Database migrations:
    • Ensure that your downrev is up to date with the latest revision on main
    • Ensure that your downgrade() migration is correct and works
      • If a downgrade migration is not possible for this change, please call this out in the PR description!
    • No migrations
  • Documentation:
    • Documentation complete, PR opened in fidesdocs
    • Documentation issue created in fidesdocs
    • If there are any new client scopes created as part of the pull request, remember to update public-facing documentation that references our scope registry
    • No documentation updates required

Copy link

vercel bot commented Sep 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
fides-plus-nightly Ready Ready Preview Comment Sep 4, 2025 5:50pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
fides-privacy-center Ignored Ignored Sep 4, 2025 5:50pm

fix: region rendering

chore: revert table changes

chore: update changelog

chore: fix liniting
Comment on lines -207 to +213
const params = row.datasource_params as WebsiteMonitorParams | null;
const locations =
row.datasource_params &&
"locations" in row.datasource_params &&
Array.isArray(row.datasource_params.locations)
? row.datasource_params.locations
: [];
Copy link
Contributor

Choose a reason for hiding this comment

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

don't we want to keep the cast to WebsiteMonitorParams to avoid all the checking "locations" in row.datasource_params , Array.isArray etc ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Casting without checks could lead to a bug since we have no assurances that it's accurate.
The real fix is having the correct type for the table/response from the api that includes location in the type.

Comment on lines 224 to 226
const regionRecord =
regionCode && PRIVACY_NOTICE_REGION_RECORD[regionCode[1]];

Copy link
Contributor

Choose a reason for hiding this comment

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

what's regionCode[1] here? maybe that warrants a code comment :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes it's def unclear.
These values are fallbacks that should be depreciated and will make note of it.

@speaker-ender speaker-ender merged commit 241bae8 into main Sep 4, 2025
20 checks passed
@speaker-ender speaker-ender deleted the fix/minitor-config-location--ENG-1305 branch September 4, 2025 18:01
Copy link

cypress bot commented Sep 4, 2025

fides    Run #13329

Run Properties:  status check passed Passed #13329  •  git commit 241bae8a9c: fix: location select mode and table display [ENG-1305] (#6545)
Project fides
Branch Review main
Run status status check passed Passed #13329
Run duration 00m 58s
Commit git commit 241bae8a9c: fix: location select mode and table display [ENG-1305] (#6545)
Committer 3nder
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 5
View all changes introduced in this branch ↗︎

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