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: RND-9: Local File Storage doesn't work with token and raises 403 #5686

Merged
merged 15 commits into from
Apr 9, 2024

Conversation

makseq
Copy link
Member

@makseq makseq commented Apr 6, 2024

Change has impacts in these area(s)

(check all that apply)

  • Product design
  • Backend (Database)
  • Backend (API)
  • Frontend

Describe the reason for change

Local File Storage doesn't work with API tokens and raises 403.
request.user is Anonymous when token is used.

What level of testing was included in the change?

(check all that apply)

  • e2e
  • integration
  • unit

@github-actions github-actions bot added the fix label Apr 6, 2024
Copy link

netlify bot commented Apr 6, 2024

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit 971b8b5
🔍 Latest deploy log https://app.netlify.com/sites/label-studio-docs-new-theme/deploys/6614aa2f320a260008cba2f8

Copy link

netlify bot commented Apr 6, 2024

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 971b8b5
🔍 Latest deploy log https://app.netlify.com/sites/heartex-docs/deploys/6614aa2f4fb37f00093c25c0

Copy link

codecov bot commented Apr 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.96%. Comparing base (aa7908a) to head (971b8b5).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5686   +/-   ##
========================================
  Coverage    75.95%   75.96%           
========================================
  Files          158      158           
  Lines        13327    13331    +4     
========================================
+ Hits         10123    10127    +4     
  Misses        3204     3204           
Flag Coverage Δ
pytests 75.96% <100.00%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@makseq makseq merged commit d91c105 into develop Apr 9, 2024
38 checks passed
makseq added a commit that referenced this pull request Apr 9, 2024
…en and raises 403 (#5686)

_(check all that apply)_
- [ ] Product design
- [ ] Backend (Database)
- [x] Backend (API)
- [ ] Frontend

Local File Storage doesn't work with API tokens and raises 403.
request.user is Anonymous when token is used.

_(check all that apply)_
- [ ] e2e
- [ ] integration
- [ ] unit
makseq added a commit that referenced this pull request Apr 9, 2024
…e 1.12 (#5698)

…en and raises 403 (#5686)

_(check all that apply)_
- [ ] Product design
- [ ] Backend (Database)
- [x] Backend (API)
- [ ] Frontend

Local File Storage doesn't work with API tokens and raises 403.
request.user is Anonymous when token is used.

_(check all that apply)_
- [ ] e2e
- [ ] integration
- [ ] unit

### PR fulfills these requirements
- [ ] Commit message(s) and PR title follows the format
`[fix|feat|ci|chore|doc]: TICKET-ID: Short description of change made`
ex. `fix: DEV-XXXX: Removed inconsistent code usage causing intermittent
errors`
- [ ] Tests for the changes have been added/updated (for bug
fixes/features)
- [ ] Docs have been added/updated (for bug fixes/features)
- [ ] Best efforts were made to ensure docs/code are concise and
coherent (checked for spelling/grammatical errors, commented out code,
debug logs etc.)
- [ ] Self-reviewed and ran all changes on a local instance (for bug
fixes/features)



#### Change has impacts in these area(s)
_(check all that apply)_
- [ ] Product design
- [ ] Backend (Database)
- [ ] Backend (API)
- [ ] Frontend



### Describe the reason for change
_(link to issue, supportive screenshots etc.)_



#### What does this fix?
_(if this is a bug fix)_



#### What is the new behavior?
_(if this is a breaking or feature change)_



#### What is the current behavior?
_(if this is a breaking or feature change)_



#### What libraries were added/updated?
_(list all with version changes)_



#### Does this change affect performance?
_(if so describe the impacts positive or negative)_



#### Does this change affect security?
_(if so describe the impacts positive or negative)_



#### What alternative approaches were there?
_(briefly list any if applicable)_



#### What feature flags were used to cover this change?
_(briefly list any if applicable)_



### Does this PR introduce a breaking change?
_(check only one)_
- [ ] Yes, and covered entirely by feature flag(s)
- [ ] Yes, and covered partially by feature flag(s)
- [ ] No
- [ ] Not sure (briefly explain the situation below)



### What level of testing was included in the change?
_(check all that apply)_
- [ ] e2e
- [ ] integration
- [ ] unit



### Which logical domain(s) does this change affect?
_(for bug fixes/features, be as precise as possible. ex. Authentication,
Annotation History, Review Stream etc.)_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants