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

Restrict amount of data beiging posted Issue #172 #176

Merged
merged 4 commits into from
Jul 2, 2024

Conversation

BraunRudolf
Copy link
Contributor

Pull Request

Description

Add check of content_lenght to main.post_pv_actual (limit 1 MB)

Add test_post_too_large_pv_actual

Fixes #172

How Has This Been Tested?

Unit-Test

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

Solves issue openclimatefix#172

Add check of content_lenght to main.post_pv_actual (limit 1 MB)
Add test_post_too_large_pv_actual

Signed-off-by: Rudolf Braun <[email protected]>
@BraunRudolf BraunRudolf marked this pull request as ready for review June 23, 2024 14:33
@BraunRudolf
Copy link
Contributor Author

Should the limit be mentioned in the doc string?

@peterdudfield
Copy link
Contributor

@BraunRudolf do you mind fixing the lint error here?

@BraunRudolf
Copy link
Contributor Author

Of course not! I'll take a look.

Signed-off-by: Rudolf Braun <[email protected]>
@peterdudfield peterdudfield merged commit 31593f1 into openclimatefix:main Jul 2, 2024
1 check passed
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.

Restrict the amount of data being posted
2 participants