-
Notifications
You must be signed in to change notification settings - Fork 9
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
refactor: Update feature flag keys #1192
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1192 +/- ##
==========================================
+ Coverage 57.55% 57.72% +0.17%
==========================================
Files 491 493 +2
Lines 36027 36091 +64
==========================================
+ Hits 20736 20835 +99
+ Misses 15291 15256 -35 ☔ View full report in Codecov by Sentry. |
src/api/store/event.py
Outdated
return None, NotAuthorizedError() | ||
|
||
event_community = events.first().community | ||
if event_community: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why isn't this a single condition ?
if event_community:
if not is_admin_of_community(context, event_community.id):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did that in the latest push
@@ -310,8 +310,8 @@ def _base_community_query(is_sandbox): | |||
|
|||
def _get_file_url(image): | |||
if not image: | |||
return None | |||
return image.file.url if image.file else None | |||
return "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add test coverage for this. @abdullai-t
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure.
…e test coverage for file URL retrieval
Summary / Highlights
This pull request includes several changes to improve feature flag management, error logging, and community event handling. It also introduces a new test case for the testimonial nudge feature.
Feature Flag Management:
SHARED_TESTIMONIALS_NUDGE_FF
feature flag toTESTIMONIAL_AUTO_SHARE_SETTINGS_NUDGE_FEATURE_FLAG_KEY
in multiple files for consistency. [1] [2] [3]Error Logging:
login
method by removing thelevel="error"
parameter fromlog.error
calls.Community Event Handling:
delete_event
method to handle the case where the community of an event might beNone
.download_data
method to remove an unused parameter from thesend_events_report
function call.info
method to returnNone
for the community if it does not exist.Testing:
cadmin_testimonial_nudge
feature, including setup and teardown methods, and tests for retrieving community admin names and emails, as well as preparing testimonials.Other Changes:
_get_file_url
function to return an empty string instead ofNone
when an image is not present.Details (Give details about what this PR accomplishes, include any screenshots etc)
Testing Steps (Provide details on how your changes can be tested)
Requirements (place an
x
in each[ ]
)Transparency (Project board)