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

Add taxiform updates to trigger course data_modified_timestamp changes #4468

Merged
merged 3 commits into from
Oct 16, 2024

Conversation

hamza-56
Copy link
Contributor

@hamza-56 hamza-56 commented Oct 15, 2024

PROD-4061

This update ensures that the data_modified timestamp for a course is updated when changes are made to the taxiform.

  • The data_modified timestamp is now updated whenever the taxiform is updated via the admin interface.
  • Additionally, changing any fields on the taxiform object also triggers an update to the data_modified timestamp for the associated course.

These changes ensure that the course's modified timestamp reflects updates to the taxiform.

@hamza-56 hamza-56 self-assigned this Oct 15, 2024
@hamza-56 hamza-56 force-pushed the hamza/PROD-4061 branch 2 times, most recently from ce9db46 to 767880e Compare October 15, 2024 01:51
Copy link
Contributor

@DawoudSheraz DawoudSheraz left a comment

Choose a reason for hiding this comment

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

Please update PR description, the ticket is internal and won't be accessible to larger audience.

course1.refresh_from_db()
course2.refresh_from_db()

taxi_form.save()
Copy link
Contributor

Choose a reason for hiding this comment

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

this statement should be above the refresh_from_db statements

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@hamza-56 hamza-56 merged commit 9f8b59a into master Oct 16, 2024
14 checks passed
@hamza-56 hamza-56 deleted the hamza/PROD-4061 branch October 16, 2024 13:36
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.

3 participants