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

#1397 - make fileCountMax / totalSizeMax optional #1398

Merged
merged 1 commit into from
Aug 24, 2022

Conversation

louise-davies
Copy link
Member

This means we can more easily remember to check if they're set to a valid number via TS and to disable any features related to them if they're undefined - primilary what's fixed here is the "too many/much" alerts.

Because this is needed to create a patch release, it's needs to merge onto main (and it branched from main). I will then merge main into develop + resolve any merge conflicts.

Description

Enter a description of the changes here

Testing instructions

Add a set up instructions describing how the reviewer should test the code

  • Review code
  • Check Actions build
  • Review changes to test coverage
  • {more steps here}

Agile board tracking

Closes #1397

- this means we can more easily remember to check if they're set to a valid number via TS
and to disable any features related to them if they're undefined
@louise-davies
Copy link
Member Author

Note - because this is branched from main, it is before the yarn 2 upgrade and so it will likely bork your existing repo's dependencies. I'd suggest checking this out in a seperate clone of the repo/git worktree so as to not cause as muh trouble when switching back to develop later.

@codecov
Copy link

codecov bot commented Aug 24, 2022

Codecov Report

Merging #1398 (d8f070f) into main (7324fc0) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1398   +/-   ##
=======================================
  Coverage   97.49%   97.49%           
=======================================
  Files         134      134           
  Lines        6827     6827           
  Branches     2094     2094           
=======================================
  Hits         6656     6656           
  Misses        155      155           
  Partials       16       16           
Flag Coverage Δ
common 98.16% <ø> (ø)
dataview 97.98% <ø> (ø)
download 94.96% <100.00%> (ø)
search 97.37% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ckages/datagateway-download/src/ConfigProvider.tsx 100.00% <ø> (ø)
...d/src/downloadCart/downloadCartTable.component.tsx 93.28% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@louise-davies louise-davies added bug Something isn't working datagateway-download Issues relating to the download plugin labels Aug 24, 2022
@sam-glendenning
Copy link
Contributor

sam-glendenning commented Aug 24, 2022

May also want to amend the code at

export function formatBytes(bytes: number | undefined): string {
since parts of it are no longer relevant

Edit: never mind, it's still used in the calculation of totalSize

@louise-davies louise-davies merged commit 026a5d1 into main Aug 24, 2022
@louise-davies louise-davies deleted the bugfix/make-cart-limits-optional-#1397 branch August 24, 2022 10:59
@sam-glendenning sam-glendenning mentioned this pull request Sep 8, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working datagateway-download Issues relating to the download plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants