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

chore: investigate feature versions with invalid feature states #4871

Conversation

matthewelwell
Copy link
Contributor

@matthewelwell matthewelwell commented Nov 27, 2024

Changes

Adds logging and exceptions to certain areas of the code to try and track down why we are seemingly seeing versions created with FeatureStates added from unrelated features.

How did you test this code?

Unit tests.

Copy link

vercel bot commented Nov 27, 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 Nov 28, 2024 10:33am
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Visit Preview Nov 28, 2024 10:33am
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Visit Preview Nov 28, 2024 10:33am

@github-actions github-actions bot added api Issue related to the REST API chore labels Nov 27, 2024
Copy link
Contributor

github-actions bot commented Nov 27, 2024

Uffizzi Preview deployment-58635 was deleted.

@github-actions github-actions bot added chore and removed chore labels Nov 27, 2024
@github-actions github-actions bot added chore and removed chore labels Nov 27, 2024
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.37%. Comparing base (6ad5e76) to head (09b0842).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4871   +/-   ##
=======================================
  Coverage   97.37%   97.37%           
=======================================
  Files        1186     1187    +1     
  Lines       41261    41294   +33     
=======================================
+ Hits        40179    40212   +33     
  Misses       1082     1082           

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

@github-actions github-actions bot added chore and removed chore labels Nov 27, 2024
@matthewelwell matthewelwell marked this pull request as ready for review November 27, 2024 18:22
@matthewelwell matthewelwell requested a review from a team as a code owner November 27, 2024 18:22
@matthewelwell matthewelwell requested review from khvn26 and removed request for a team November 27, 2024 18:22
@github-actions github-actions bot added chore and removed chore labels Nov 27, 2024
Copy link
Contributor

github-actions bot commented Nov 27, 2024

Docker builds report

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

@matthewelwell matthewelwell requested a review from a team November 27, 2024 18:23
@matthewelwell matthewelwell changed the title chore: investigate feature versions with invalid feature states (WIP) chore: investigate feature versions with invalid feature states Nov 27, 2024
@github-actions github-actions bot added chore and removed chore labels Nov 28, 2024
Comment on lines 584 to 588
"task_processor": {
"level": LOG_LEVEL,
"handlers": ["console"],
"propagate": False,
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@khvn26 good catch - the logging wasn't working correctly for the task processor. I'm not entirely sure why but I assume it's related to it having been moved to it's own package. I've re-added the configuration for it here in the meantime.

@matthewelwell matthewelwell marked this pull request as draft November 28, 2024 12:25
@matthewelwell
Copy link
Contributor Author

Superseded by #4872

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 chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant