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: display meaningfull message if the folder list is empty #867

Merged
merged 1 commit into from
Aug 10, 2023
Merged

Conversation

12rambau
Copy link
Member

@12rambau 12rambau commented Aug 8, 2023

fix: #826

Normally all the conection to GEE should be done using either the need_ee method or the need_ee decorator. So in both cases I decided to simply assert if at least one root exist. If not I raise an error. As this will be triggered before the widgets are displayed, it will be visible on the screen.

@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Merging #867 (4c5a291) into main (cd7d97c) will decrease coverage by 0.03%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #867      +/-   ##
==========================================
- Coverage   96.58%   96.55%   -0.03%     
==========================================
  Files          39       39              
  Lines        3802     3804       +2     
==========================================
+ Hits         3672     3673       +1     
- Misses        130      131       +1     
Files Changed Coverage Δ
sepal_ui/scripts/decorator.py 87.09% <0.00%> (-0.71%) ⬇️
sepal_ui/scripts/utils.py 97.14% <100.00%> (+0.02%) ⬆️

@12rambau 12rambau marked this pull request as ready for review August 8, 2023 20:58
@12rambau 12rambau merged commit 1e3cd4c into main Aug 10, 2023
9 of 11 checks passed
@12rambau 12rambau deleted the gee branch August 10, 2023 05:21
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.

solve the issue when people have not initialized their root directory
2 participants