Skip to content

Conversation

MarcelGeo
Copy link
Contributor

Resolves #241

  • improved changes handling
  • introduce limits as in related ticket

max 10GB of non versioned files
max 5GB of versioned files
@MarcelGeo MarcelGeo changed the title Changes limits Upload changes limits Sep 11, 2025
@MarcelGeo MarcelGeo changed the base branch from master to push-v2-integration September 11, 2025 16:08
@MarcelGeo MarcelGeo requested a review from varmar05 September 12, 2025 09:44
@@ -486,14 +486,17 @@ def get_push_changes_batch(mc, mp: MerginProject) -> Tuple[LocalChanges, int]:
updated=[LocalChange(**change) for change in changes["updated"]],
removed=[LocalChange(**change) for change in changes["removed"]],
)
if local_changes.get_media_upload_size() > MAX_UPLOAD_MEDIA_SIZE:

over_limit_media = local_changes.get_media_upload_over_size(MAX_UPLOAD_MEDIA_SIZE)
Copy link
Contributor

Choose a reason for hiding this comment

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

I liked your post_init approach, how about moving these checks to class as the first validation? We can also do both checks in single loop and raise custom validation error which will here trigger client error.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

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.

Impose non geodiff push limits
2 participants