Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Fix issue closing alerts#1871

Merged
DavidWiseman merged 1 commit intotrimble-oss:mainfrom
DavidWiseman:1870_IssueClosingAlerts
Apr 29, 2026
Merged

Fix issue closing alerts#1871
DavidWiseman merged 1 commit intotrimble-oss:mainfrom
DavidWiseman:1870_IssueClosingAlerts

Conversation

@DavidWiseman
Copy link
Copy Markdown
Collaborator

@DavidWiseman DavidWiseman commented Apr 29, 2026

Fix issue with identity values being reused due to table rebuild. #1870

Copilot AI review requested due to automatic review settings April 29, 2026 09:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a post-deployment repair step to prevent Alert.ActiveAlerts identity values from being reused after a table rebuild, which can break alert closing when IDs collide with Alert.ClosedAlerts.

Changes:

  • Add Alert.ActiveAlerts_FixIdentitySeed stored procedure to detect conflicts and reseed/renumber as needed.
  • Execute the fix procedure during post-deployment.
  • Include the new procedure in the SQL project build.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
DBADashDB/Script.PostDeployment1.sql Runs the new identity-seed repair proc during deployment.
DBADashDB/DBADashDB.sqlproj Adds the new procedure script to the project build inputs.
DBADashDB/Alert/Procedures/ActiveAlerts_FixIdentitySeed.sql Implements identity/ID conflict detection, renumbering, and reseeding logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread DBADashDB/Alert/Procedures/ActiveAlerts_FixIdentitySeed.sql Outdated
Comment thread DBADashDB/Alert/Procedures/ActiveAlerts_FixIdentitySeed.sql Outdated
Comment thread DBADashDB/Script.PostDeployment1.sql Outdated

This comment was marked as outdated.

This comment was marked as outdated.

Fix issue with identity values being reused due to table rebuild.

Co-Authored-By: Copilot <175728472+Copilot@users.noreply.github.com>
@DavidWiseman DavidWiseman force-pushed the 1870_IssueClosingAlerts branch from d7c5cb1 to aef524a Compare April 29, 2026 10:24
@DavidWiseman DavidWiseman merged commit 35498e8 into trimble-oss:main Apr 29, 2026
@DavidWiseman DavidWiseman deleted the 1870_IssueClosingAlerts branch April 29, 2026 10:47
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