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

Fix file revision move bugs #2212

Merged
merged 3 commits into from
Dec 15, 2024
Merged

Fix file revision move bugs #2212

merged 3 commits into from
Dec 15, 2024

Conversation

emmiegit
Copy link
Member

@emmiegit emmiegit commented Dec 14, 2024

Two bugs were raised in chat related to moving files between pages:

  1. The actual function to create a move-type file revision fails because that type wasn't permitted in the assertion. I also left a comment noting under what conditions enums should be present there.
  2. The page_id requirement in the file_revision query means we can only see file revisions that happened when the file was on that specific page. Since files can exist historically across multiple pages, we shouldn't add that condition here like we have for site_id in pages.

@emmiegit emmiegit requested a review from Zokhoi December 14, 2024 20:41
@emmiegit emmiegit self-assigned this Dec 14, 2024
@Zokhoi Zokhoi merged commit 067be50 into develop Dec 15, 2024
8 checks passed
@Zokhoi Zokhoi deleted the file-fix branch December 15, 2024 03:51
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