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(edge-api/tasks): Add change_by_user_id #4591

Merged
merged 3 commits into from
Sep 5, 2024
Merged

Conversation

gagantrivedi
Copy link
Member

@gagantrivedi gagantrivedi commented Sep 5, 2024

Thanks for submitting a PR! Please check the boxes below:

  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Add change_by_user_id to avoid old tasks from crashing
related: https://github.com/Flagsmith/flagsmith/pull/4561/files

How did you test this code?

Adds a unit test

Add change_by_user_id to avoid old tasks from crashing
@gagantrivedi gagantrivedi requested a review from a team as a code owner September 5, 2024 09:30
@gagantrivedi gagantrivedi requested review from zachaysan and removed request for a team September 5, 2024 09:30
Copy link

vercel bot commented Sep 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Sep 5, 2024 0:40am
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Visit Preview Sep 5, 2024 0:40am
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Visit Preview Sep 5, 2024 0:40am

@github-actions github-actions bot added api Issue related to the REST API fix labels Sep 5, 2024
Copy link
Contributor

github-actions bot commented Sep 5, 2024

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-4591 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-4591 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-4591 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-4591 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-4591 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-4591 Finished ✅ Results

Copy link
Contributor

github-actions bot commented Sep 5, 2024

Uffizzi Preview deployment-55907 was deleted.

@github-actions github-actions bot added fix and removed fix labels Sep 5, 2024
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.15%. Comparing base (5c02c1e) to head (ed93771).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4591   +/-   ##
=======================================
  Coverage   97.15%   97.15%           
=======================================
  Files        1156     1157    +1     
  Lines       39934    40013   +79     
=======================================
+ Hits        38797    38876   +79     
  Misses       1137     1137           

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

Copy link
Contributor

@matthewelwell matthewelwell left a comment

Choose a reason for hiding this comment

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

Minor comment re: typing

Comment on lines 131 to 133
def test_call_environment_webhook_for_feature_state_change_with_changed_by_user_id(
mocker, environment, feature, identity, admin_user
):
Copy link
Contributor

Choose a reason for hiding this comment

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

Typing please

Copy link
Member Author

Choose a reason for hiding this comment

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

Ahh, we should make pre-commit catch this

@github-actions github-actions bot added fix and removed fix labels Sep 5, 2024
feature: Feature,
identity: Identity,
admin_user: FFAdminUser,
):
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
):
) -> None:

@gagantrivedi gagantrivedi added this pull request to the merge queue Sep 5, 2024
Merged via the queue into main with commit 940a56d Sep 5, 2024
35 checks passed
@gagantrivedi gagantrivedi deleted the fix/wehook-task branch September 5, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants