Skip to content

Update create_time field to be required in history content items #20357

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

davelopez
Copy link
Contributor

Part of #20332, discovered while trying to calculate the expiration time of a collection.

I don't remember exactly why this was set to optional in 1d23ba6, but it seems the database field's default will always be set to "now", so it makes more sense and is more consistent to make the value required.

Let's see what the tests say about it.

How to test the changes?

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

I don't remember exactly why this was set to optional, but It seems the default of the database field will always be datetime.now so it makes more sense to make the value required.
@davelopez davelopez added kind/refactoring cleanup or refactoring of existing code, no functional changes area/API labels May 27, 2025
@davelopez davelopez marked this pull request as ready for review May 27, 2025 16:09
@github-actions github-actions bot added this to the 25.1 milestone May 27, 2025
@davelopez
Copy link
Contributor Author

Good. Test failures are unrelated :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/API kind/refactoring cleanup or refactoring of existing code, no functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant