Skip to content

[MDS-6693] Enable same day start date as end date of previous appointments#3719

Merged
matbusby-fw merged 5 commits intodevelopfrom
mds-6693-party-appointment-dates
Oct 31, 2025
Merged

[MDS-6693] Enable same day start date as end date of previous appointments#3719
matbusby-fw merged 5 commits intodevelopfrom
mds-6693-party-appointment-dates

Conversation

@matbusby-fw
Copy link
Collaborator

Objective

Realized that the sub task of the ticket contained additional AC not covered in the original PR.
This addresses the ability to assign a start date for a mine party appointment that is the same date as the end date of a previous appointment.

MDS-6693

ALTER TABLE mine_party_appt DROP CONSTRAINT mine_party_appt_mine_guid_daterange_excl;

-- only constrain non-deleted contacts and allow overlaps on the end date
ALTER TABLE mine_party_appt ADD EXCLUDE USING gist ((mine_guid::text) WITH =, daterange(start_date,end_date,'[)')
Copy link
Collaborator Author

@matbusby-fw matbusby-fw Oct 30, 2025

Choose a reason for hiding this comment

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

Makes the end date not be included in the restricted dates by changing daterange(start_date,end_date,'[])' to ``daterange(start_date,end_date,'[)'

taraepp
taraepp previously approved these changes Oct 30, 2025
asinn134
asinn134 previously approved these changes Oct 30, 2025
@matbusby-fw matbusby-fw dismissed stale reviews from asinn134 and taraepp via ff3700b October 30, 2025 22:19
@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed for 'bcgov-sonarcloud_mds_minespace-web'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

@matbusby-fw matbusby-fw merged commit 20b06cb into develop Oct 31, 2025
31 checks passed
@matbusby-fw matbusby-fw deleted the mds-6693-party-appointment-dates branch October 31, 2025 18:38
matbusby-fw added a commit that referenced this pull request Nov 5, 2025
…ments (#3719)

* followup to mine manager appointment date updates

* adjust test data to align with updated appointment date

* adjust test data to align with updated appointment date

* update test data to extend appointment end date

* update test data to extend appointment end date

---------

Co-authored-by: mat <matbusby@gmail.com>
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.

4 participants