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

Remove firebase-admin dependency #35798

Merged
merged 3 commits into from
Feb 19, 2025
Merged

Remove firebase-admin dependency #35798

merged 3 commits into from
Feb 19, 2025

Conversation

millerdev
Copy link
Contributor

Remove feature-flagged functionality that depends on firebase-admin to allow it and its sub-dependencies to be removed. This is a minimal PR to make it possible to remove dependencies. More code could and probably should be removed. See #33047 for other things that may also be removed in the future.

Slack discussion.

Feature Flag

Affects FCM_NOTIFICATION toggle, which has been updated with a note that it is no longer functional.

Safety Assurance

Safety story

Removes a pre-release feature that is no longer in use.

Automated test coverage

Rollback instructions

If this PR must be reverted the dependencies that are removed will need to be updated to support Python 3.13.

@millerdev millerdev added the product/feature-flag Change will only affect users who have a specific feature flag enabled label Feb 18, 2025
@millerdev millerdev requested a review from ajeety4 February 18, 2025 21:01
@dimagimon dimagimon added the dependencies Pull requests that update a dependency file label Feb 18, 2025
Copy link
Member

@ctsims ctsims left a comment

Choose a reason for hiding this comment

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

This looks good and minimal enough to me for now as long as it won't cause problems to revert (I don't think that'll happen, but don't want to discount the possibility)

Copy link
Contributor

@ajeety4 ajeety4 left a comment

Choose a reason for hiding this comment

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

I don't have context on the associated Connect functionality; however, from HQ's perspective, the changes look good to me.

)

FCM_NOTIFICATION = StaticToggle(
'fcm_notification',
'Allows access to FCM Push Notifications',
'FCM Push Notifications - no longer functional',
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey @ajeety4

Can you confirm that this would discontinue the feature itself then, FCM notifications?

Copy link
Contributor

Choose a reason for hiding this comment

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

The code changes in this PR should simply log an error in case a fcm push notification are attempted via the conditional alerts. I believe follow up work will be require to entirely remove it.

Copy link
Contributor

Choose a reason for hiding this comment

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

@ajeety4 Can you help with a ticket for the same? also, no projects are using this?

fyi @shubham1g5 if there is anything to be removed from app side?

Copy link
Contributor

Choose a reason for hiding this comment

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

Correction, the code has been asked to kept around for future use.

Offline chat reference

@millerdev millerdev merged commit 2b3d403 into master Feb 19, 2025
14 checks passed
@millerdev millerdev deleted the dm/rm-firebase-admin branch February 19, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file product/feature-flag Change will only affect users who have a specific feature flag enabled
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants