Skip to content

Update should_sync_ecapris_statuses to false for projects without eCAPRIS IDs#1613

Merged
roseeichelmann merged 4 commits into
mike/22270_notes_viewfrom
rose/23041_should_sync_ecapris_false
Jul 2, 2025
Merged

Update should_sync_ecapris_statuses to false for projects without eCAPRIS IDs#1613
roseeichelmann merged 4 commits into
mike/22270_notes_viewfrom
rose/23041_should_sync_ecapris_false

Conversation

@roseeichelmann
Copy link
Copy Markdown
Contributor

@roseeichelmann roseeichelmann commented Jun 17, 2025

Associated issues

Closes cityofaustin/atd-data-tech#23041

Testing

URL to test:

Local

Steps to test:

  1. Before applying migrations, start your local DB and find a project in moped_projects table without an ecapris_subproject_id. See that the should_sync_ecapris_statuses = true. Copy that project id to look up later
  2. Apply migrations, now look up that project id and see that it now has should_sync_ecapris_statuses = false
  3. New projects will default to should_sync_ecapris_statuses = false

Ship list

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 17, 2025

Deploy Preview for atd-moped-main ready!

Name Link
🔨 Latest commit 7ec56ae
🔍 Latest deploy log https://app.netlify.com/projects/atd-moped-main/deploys/68559c615a6994000897a325
😎 Deploy Preview https://deploy-preview-1613--atd-moped-main.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@roseeichelmann roseeichelmann changed the base branch from main to mike/22270_notes_view June 20, 2025 17:37
Copy link
Copy Markdown
Collaborator

@mddilley mddilley left a comment

Choose a reason for hiding this comment

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

Tested this with some SQL queries, and there are no projects without eCAPRIS ids that have syncing turned on. Also tested creating a new project, and I no longer see that awkward state with the disabled toggle that is switched on.

Thanks again for catching - and fixing! 🙏 🚢

Copy link
Copy Markdown
Member

@johnclary johnclary left a comment

Choose a reason for hiding this comment

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

Looks good to me!
🚢

@@ -0,0 +1 @@
alter table "public"."moped_project" alter column "should_sync_ecapris_statuses" set default 'true';
Copy link
Copy Markdown
Member

@johnclary johnclary Jul 1, 2025

Choose a reason for hiding this comment

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

If desired we could suppress triggers/activity logs using the old SET session_replication_role = replica; trick

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i say let's go for it! i often forget about this trick so this will help me keep it in mind. 🙏

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done!

@roseeichelmann roseeichelmann merged commit b797d95 into mike/22270_notes_view Jul 2, 2025
1 check passed
@roseeichelmann roseeichelmann deleted the rose/23041_should_sync_ecapris_false branch July 2, 2025 19:51
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.

Update should_sync_ecapris_statuses to false for projects without eCAPRIS IDs

3 participants