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

Change 'last updated' field in region list to refer to their content #2419

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

charludo
Copy link
Contributor

Short description

Change 'last updated' field in region list to each region's content instead of the region object itself.

Proposed changes

  • add last_content_update cached property to region model
  • use it instead of last_updated in the region list

Side effects

  • none I could find, keeping the last_updated field unmodified should prevent any backwards compatibility issues

Resolved issues

Fixes: #1836


Pull Request Review Guidelines

@codeclimate
Copy link

codeclimate bot commented Sep 23, 2023

Code Climate has analyzed commit 94bb980 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 76.6% (0.0% change).

View more on Code Climate.

Copy link
Member

@david-venhoff david-venhoff left a comment

Choose a reason for hiding this comment

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

Thanks!

integreat_cms/cms/models/regions/region.py Outdated Show resolved Hide resolved
integreat_cms/cms/models/regions/region.py Show resolved Hide resolved
Copy link
Member

@timobrembeck timobrembeck left a comment

Choose a reason for hiding this comment

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

Thanks! 👍
Apart from @david-venhoff's comments, I don't have any further objections, except maybe adding a changelog entry for it 😅

@charludo charludo force-pushed the feature/last-updated-refers-to-region-content branch from 2b5bcdd to 6fd7397 Compare October 10, 2023 09:47
@charludo charludo force-pushed the feature/last-updated-refers-to-region-content branch from 6fd7397 to 94bb980 Compare October 10, 2023 09:51
@charludo charludo merged commit fc4428d into develop Oct 10, 2023
5 checks passed
@charludo charludo deleted the feature/last-updated-refers-to-region-content branch October 10, 2023 09:59
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.

"Last updated" field in region list should show the date of the last changed content
3 participants