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

Feature-authorized-scopes-updater #560

Merged
merged 36 commits into from
Aug 6, 2024
Merged

Conversation

Vas9ka
Copy link
Contributor

@Vas9ka Vas9ka commented Jul 5, 2024

Added updater of authorized_scopes field in Fragment based on Genre updater

Copy link
Contributor

sourcery-ai bot commented Jul 5, 2024

🧙 Sourcery has finished reviewing your pull request!


Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link

sentry-io bot commented Jul 5, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: ebl/fragmentarium/web/bootstrap.py

Function Unhandled Issue
create_fragmentarium_routes ValueError: uri_template may not contain '//' ebl...
Event Count: 1
create_fragmentarium_routes TypeError: init() missing 1 required positional argument: 'updater' ebl.fragmentarium.web.bootstrap in crea...
Event Count: 1
📄 File: ebl/fragmentarium/web/fragments.py (Click to Expand)
Function Unhandled Issue
on_get NotFoundError: Fragment Rm-III.16 not found. /fra...
Event Count: 2
---

Did you find this useful? React with a 👍 or 👎

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've reviewed this pull request using the Sourcery rules engine. If you would also like our AI-powered code review then let us know.

resp.status = falcon.HTTP_200
resp.media = create_response_dto(updated_fragment, user, has_photo)
except ValueError as error:
raise DataError(error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (code-quality): Explicitly raise from a previous error (raise-from-previous-error)

Suggested change
raise DataError(error)
raise DataError(error) from error

@Vas9ka Vas9ka requested a review from fsimonjetz July 16, 2024 13:55
zsomborfoldi and others added 10 commits August 6, 2024 15:31
* update ScopeField

* update function call

* update test data

* update match_user_scopes
* install ruff

* reformat files

* fix mocking calls to user profile

* suppress "Unable to concatenate tuple [60]" error

* fix formatting error

* refactor

* update tasks

* use ruff for linting and formatting

* remove old config file

* bugfix

* add ruff

* replace tuple() with ()

* remove C408 from ignored rules

* replace `tuple()` with literal `()` and reformat
Copy link

codeclimate bot commented Aug 6, 2024

Code Climate has analyzed commit 9b4c99b and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 92.3% (75% is the threshold).

This pull request will bring the total coverage in the repository to 91.4% (0.0% change).

View more on Code Climate.

@Vas9ka Vas9ka merged commit b46c5ee into master Aug 6, 2024
12 checks 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.

4 participants