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

#10770: Vector files import limits #10772

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mahmoudadel54
Copy link
Contributor

Description

This PR handles checking on imported vector files size if a confugrable prop is existing into localConfig.
This PR introduces a performed check by MS to verify if imported vector files are over a certain (configurable) file size.

The size limit is allowed now to be configurable into localConfig by prop called 'importedVectorFileMaxSizeInMB' and its value is number of megabytes. If the file is exceeding the max limit, a warning notification is shown to user.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe: Enhancement

Issue

#10770

What is the current behavior?
#10770

What is the new behavior?
If 'importedVectorFileMaxSizeInMB' is added into localConfig, and user wants to upload vector files with size larger that 'importedVectorFileMaxSizeInMB' it will show a warning notification about exceeding the max file size.

2025-01-22.21-55-56.mp4

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

Description:
- handle checking the file size for imported vector layers only
- show a warning notification for each layer has size larger than the configurable limit if configured
- add translations
- add test units
Description:
- add enhancements to the code including some helpful comments
Description:
- rename the configurable prop name of vector max size to 'importedVectorFileMaxSizeInMB' instead of 'importedVectorFileSizeInMB' to be more meaningful
@mahmoudadel54 mahmoudadel54 added this to the 2025.01.00 milestone Jan 24, 2025
@mahmoudadel54 mahmoudadel54 requested a review from MV88 January 24, 2025 15:58
@mahmoudadel54 mahmoudadel54 self-assigned this Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant