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

DESENG-437: Resolved a timezone discrepancy while publishing #2349

Merged
merged 6 commits into from
Jan 10, 2024

Conversation

ratheesh-aot
Copy link
Collaborator

Issue #: https://apps.itsm.gov.bc.ca/jira/browse/DESENG-437

Description of changes:

  1. Implemented a user-friendly message for scenarios where no engagements are scheduled for publication.

  2. Resolved a timezone discrepancy in the engagement publication process.

Previously, the system compared the UTC-formatted scheduled dates in the database against the local timezone of the machine running the cron job. This discrepancy led to failures in identifying engagements scheduled for or before the current time. The comparison logic has now been modified to use the current time in UTC, ensuring accurate retrieval of scheduled engagements.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the met-public license (Apache 2.0).

@ratheesh-aot ratheesh-aot requested a review from Baelx January 9, 2024 19:40
Copy link
Collaborator

@Baelx Baelx left a comment

Choose a reason for hiding this comment

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

Nice, quick fix. Thanks @ratheesh-aot ! Could you please just update the Changelog to correct the order of dates? Right now, we have two headings for January 9th and one of them is buried a little deeper.

Could you please move the latest date to the top and add harmonize all list items under the same date? Hope that's clear and let me know if you need further clarification.

@ratheesh-aot
Copy link
Collaborator Author

@Baelx Updated the changelog as suggested. Please review

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@ratheesh-aot
Copy link
Collaborator Author

Fixing a runtime SQLALCHEMY_DATABASE_URI missing error.

@ratheesh-aot ratheesh-aot requested a review from Baelx January 10, 2024 20:06
@ratheesh-aot ratheesh-aot merged commit 6640c49 into bcgov:main Jan 10, 2024
9 of 11 checks passed
NatSquared pushed a commit that referenced this pull request Jan 19, 2024
* DESENG-437: Fixing Publish engagement timezone and error message

Removed the title and caption of the change log file as it is not relevant anymore

* DESENG-437: Fixed CHANGELOG conflicts

* Updating the changelog

* Fixing SQLALCHEMY_DATABASE_URI error
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