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: Removed all references to Google firebase #2257

Conversation

Abhisheksainii
Copy link
Contributor

@Abhisheksainii Abhisheksainii commented Dec 18, 2023

What kind of change does this PR introduce?

BugFix

Issue Number:

Fixes #2195
#2303

Did you add tests for your changes?
No.
P.S: Tests were already there, just commented those references which were discontinued.

Snapshots/Videos:

If relevant, did you update the documentation?

No

Summary

The firebase notification services were discontinued as they were a dependency. They were causing errors while creating Events due to exception that was being thrown from backend ("Notification service not found"). The changes that I have made mostly includes commenting out and deleting the code.
Issue: #2195

Does this PR introduce a breaking change?

Removed Firebase Notifications and its references, the impact has been taken care of in this issue (PalisadoesFoundation/talawa-api#1500)

Other information
Merge this PR after this (PalisadoesFoundation/talawa-api#1503) has been merged by backend, otherwise it will cause issue while creating events.

Have you read the contributing guide?

Yes

Copy link

Our Pull Request Approval Process

We have these basic policies to make the approval process smoother for our volunteer team.

Testing Your Code

Please make sure your code passes all tests. Our test code coverage system will fail if either of these two conditions occur:

  1. The overall code coverage drops below the target threshold of the repository
  2. Any file in the pull request has code coverage levels below the repository threshold

The process helps maintain the overall reliability of the code base and is a prerequisite for getting your PR approved. Assigned reviewers regularly review the PR queue and tend to focus on PRs that are passing.

Reviewers

When your PR has been assigned reviewers contact them to get your code reviewed and approved via:

  1. comments in this PR or
  2. our slack channel

Reviewing Your Code

Your reviewer(s) will have the following roles:

  1. arbitrators of future discussions with other contributors about the validity of your changes
  2. point of contact for evaluating the validity of your work
  3. person who verifies matching issues by others that should be closed.
  4. person who gives general guidance in fixing your tests

Other

🎯 Please be considerate of our volunteers' time. Contacting the person who assigned the reviewers is not advised unless they ask for your input. Do not @ the person who did the assignment otherwise.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Congratulations on making your first PR! 🎊 If you haven't already, check out our Contributing Guidelines and PR Reporting Guidelines to ensure that you are following our guidelines for contributing and creating PR.

@Abhisheksainii Abhisheksainii changed the title feature: Removed all references to Google firebase fix: Removed all references to Google firebase Dec 18, 2023
@Abhisheksainii
Copy link
Contributor Author

@palisadoes @noman2002 can someone please approve the workflows

@Kevoniat Kevoniat self-requested a review December 18, 2023 19:15
Kevoniat
Kevoniat previously approved these changes Dec 18, 2023
@palisadoes
Copy link
Contributor

@Abhisheksainii

  1. Have you tested this with the latest upstream of the API?
  2. We just merged a PR that removed firebase.

@Abhisheksainii
Copy link
Contributor Author

@Abhisheksainii

  1. Have you tested this with the latest upstream of the API?
  2. We just merged a PR that removed firebase.

I haven't but will test it.

lib/firebase_options.dart Outdated Show resolved Hide resolved
android/app/src/main/AndroidManifest.xml Outdated Show resolved Hide resolved
lib/services/database_mutation_functions.dart Outdated Show resolved Hide resolved
@Abhisheksainii
Copy link
Contributor Author

Don't merge this PR, some tests are left

@Cioppolo14
Copy link
Contributor

@Abhisheksainii Are you still working on this?

@Abhisheksainii
Copy link
Contributor Author

Yes

@Abhisheksainii
Copy link
Contributor Author

Yes, testing phase is going on.
The issue is from backend side due to which I am unable to test.

@Abhisheksainii
Copy link
Contributor Author

@Kevoniat @Cioppolo14 you can merge the PR, testing has been done

test/utils_tests/queries_test.dart Outdated Show resolved Hide resolved
@Abhisheksainii
Copy link
Contributor Author

@literalEval I have done the changes

@Abhisheksainii Abhisheksainii force-pushed the removal/firebase-references branch from 43b1700 to f8484d5 Compare January 3, 2024 09:05
@palisadoes palisadoes removed their request for review January 3, 2024 12:08
Copy link

codecov bot commented Jan 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6ac0633) 92.48% compared to head (f194e95) 93.64%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2257      +/-   ##
===========================================
+ Coverage    92.48%   93.64%   +1.16%     
===========================================
  Files          158      157       -1     
  Lines         7633     7533     -100     
===========================================
- Hits          7059     7054       -5     
+ Misses         574      479      -95     

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

@Abhisheksainii
Copy link
Contributor Author

@literalEval all the required changes has been done and issue has been also created

@Abhisheksainii
Copy link
Contributor Author

Abhisheksainii commented Jan 4, 2024

@palisadoes @literalEval @Kevoniat kindly merge the PR as all the required changes has been done

@palisadoes
Copy link
Contributor

Please work with @literalEval @Kevoniat for approvals. I will not be checking back in.

@Abhisheksainii
Copy link
Contributor Author

@Kevoniat @literalEval can you please approve the workflows?

@Azad99-9
Copy link
Contributor

Azad99-9 commented Jan 6, 2024

@Abhisheksainii please write tests to the missing lines.

@Abhisheksainii
Copy link
Contributor Author

Abhisheksainii commented Jan 6, 2024

@Abhisheksainii please write tests to the missing lines.
@Azad99-9
I think the files that I have changed doesn't require tests to be written and as for the the issue in profile_page_view_model.dart file. It was assigned to Parag and it has been merged.

@palisadoes
Copy link
Contributor

@Kevoniat @DMills27 @Ayush0Chaudhary @literalEval please take a look. We really need this code removed so we can proceed with our roadmap

Copy link
Member

@literalEval literalEval left a comment

Choose a reason for hiding this comment

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

LGTM

@palisadoes palisadoes merged commit 705627f into PalisadoesFoundation:develop Jan 7, 2024
7 of 8 checks passed
AVtheking pushed a commit to AVtheking/talawa that referenced this pull request Jan 8, 2024
…2257)

* feature: Removed all references to Google firebase

* formatted firebase_mocks.dart

* removed ignore directive for custom lint rule

* formatted login_view_model file

* removal of commented code

* removed fcmToken test

* avoid dynamic calls check passed

* format check

* fixed linting issue

* added documentation for event_queries file

* format check
palisadoes pushed a commit that referenced this pull request Jan 10, 2024
* written test for post_modal.dart

* written the missing test

* descriptive name to the key

* fix failing test

* created settings page (#2299)

* created settings page

* formatted the code

* fixed failing tests

* resolved requested changes

* fixed failing tests

* rebased

* descriptive name to the key

* Select contact test (#2301)

* Created Test

* Updated Formatting

* fixed fetch events bug (#2308)

* fixed events fetching bug

* fixed failing tests

* added comments to event_queries

* fixed failing test

* Refactor: Decouple ViewModel by Moving UI Logic to View (#2306)

* Refactor: Decouple ViewModel by Moving UI Logic to View

* refactoring app_settings_view_model and app_seetings_page

* writing test for missing lines

* fix: Removed all references to Google firebase (#2257)

* feature: Removed all references to Google firebase

* formatted firebase_mocks.dart

* removed ignore directive for custom lint rule

* formatted login_view_model file

* removal of commented code

* removed fcmToken test

* avoid dynamic calls check passed

* format check

* fixed linting issue

* added documentation for event_queries file

* format check

* Bump syncfusion_flutter_datepicker from 24.1.43 to 24.1.44 (#2315)

Bumps [syncfusion_flutter_datepicker](https://github.com/syncfusion/flutter-widgets/tree/master/packages) from 24.1.43 to 24.1.44.
- [Release notes](https://github.com/syncfusion/flutter-widgets/releases)
- [Commits](https://github.com/syncfusion/flutter-widgets/commits/HEAD/packages)

---
updated-dependencies:
- dependency-name: syncfusion_flutter_datepicker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump url_launcher_platform_interface from 2.2.0 to 2.3.0 (#2314)

Bumps [url_launcher_platform_interface](https://github.com/flutter/packages/tree/main/packages/url_launcher) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/url_launcher_platform_interface-v2.3.0/packages/url_launcher)

---
updated-dependencies:
- dependency-name: url_launcher_platform_interface
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump image_picker from 1.0.5 to 1.0.6 (#2313)

Bumps [image_picker](https://github.com/flutter/packages/tree/main/packages/image_picker) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/image_picker-v1.0.6/packages/image_picker)

---
updated-dependencies:
- dependency-name: image_picker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump video_player from 2.8.1 to 2.8.2 (#2317)

Bumps [video_player](https://github.com/flutter/packages/tree/main/packages/video_player) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/video_player-v2.8.2/packages/video_player)

---
updated-dependencies:
- dependency-name: video_player
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump google_maps_flutter from 2.5.0 to 2.5.1 (#2316)

Bumps [google_maps_flutter](https://github.com/flutter/packages/tree/main/packages/google_maps_flutter) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/google_maps_flutter-v2.5.1/packages/google_maps_flutter)

---
updated-dependencies:
- dependency-name: google_maps_flutter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* merged develop branch

* fix

* fix failing test

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Shaik Azad <[email protected]>
Co-authored-by: Shivam Gupta <[email protected]>
Co-authored-by: Parag Gupta <[email protected]>
Co-authored-by: Abhishek Saini <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
palisadoes pushed a commit to palisadoes/talawa that referenced this pull request Jan 10, 2024
…2257)

* feature: Removed all references to Google firebase

* formatted firebase_mocks.dart

* removed ignore directive for custom lint rule

* formatted login_view_model file

* removal of commented code

* removed fcmToken test

* avoid dynamic calls check passed

* format check

* fixed linting issue

* added documentation for event_queries file

* format check
palisadoes pushed a commit to palisadoes/talawa that referenced this pull request Jan 10, 2024
* written test for post_modal.dart

* written the missing test

* descriptive name to the key

* fix failing test

* created settings page (PalisadoesFoundation#2299)

* created settings page

* formatted the code

* fixed failing tests

* resolved requested changes

* fixed failing tests

* rebased

* descriptive name to the key

* Select contact test (PalisadoesFoundation#2301)

* Created Test

* Updated Formatting

* fixed fetch events bug (PalisadoesFoundation#2308)

* fixed events fetching bug

* fixed failing tests

* added comments to event_queries

* fixed failing test

* Refactor: Decouple ViewModel by Moving UI Logic to View (PalisadoesFoundation#2306)

* Refactor: Decouple ViewModel by Moving UI Logic to View

* refactoring app_settings_view_model and app_seetings_page

* writing test for missing lines

* fix: Removed all references to Google firebase (PalisadoesFoundation#2257)

* feature: Removed all references to Google firebase

* formatted firebase_mocks.dart

* removed ignore directive for custom lint rule

* formatted login_view_model file

* removal of commented code

* removed fcmToken test

* avoid dynamic calls check passed

* format check

* fixed linting issue

* added documentation for event_queries file

* format check

* Bump syncfusion_flutter_datepicker from 24.1.43 to 24.1.44 (PalisadoesFoundation#2315)

Bumps [syncfusion_flutter_datepicker](https://github.com/syncfusion/flutter-widgets/tree/master/packages) from 24.1.43 to 24.1.44.
- [Release notes](https://github.com/syncfusion/flutter-widgets/releases)
- [Commits](https://github.com/syncfusion/flutter-widgets/commits/HEAD/packages)

---
updated-dependencies:
- dependency-name: syncfusion_flutter_datepicker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump url_launcher_platform_interface from 2.2.0 to 2.3.0 (PalisadoesFoundation#2314)

Bumps [url_launcher_platform_interface](https://github.com/flutter/packages/tree/main/packages/url_launcher) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/url_launcher_platform_interface-v2.3.0/packages/url_launcher)

---
updated-dependencies:
- dependency-name: url_launcher_platform_interface
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump image_picker from 1.0.5 to 1.0.6 (PalisadoesFoundation#2313)

Bumps [image_picker](https://github.com/flutter/packages/tree/main/packages/image_picker) from 1.0.5 to 1.0.6.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/image_picker-v1.0.6/packages/image_picker)

---
updated-dependencies:
- dependency-name: image_picker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump video_player from 2.8.1 to 2.8.2 (PalisadoesFoundation#2317)

Bumps [video_player](https://github.com/flutter/packages/tree/main/packages/video_player) from 2.8.1 to 2.8.2.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/video_player-v2.8.2/packages/video_player)

---
updated-dependencies:
- dependency-name: video_player
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump google_maps_flutter from 2.5.0 to 2.5.1 (PalisadoesFoundation#2316)

Bumps [google_maps_flutter](https://github.com/flutter/packages/tree/main/packages/google_maps_flutter) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/flutter/packages/releases)
- [Commits](https://github.com/flutter/packages/commits/google_maps_flutter-v2.5.1/packages/google_maps_flutter)

---
updated-dependencies:
- dependency-name: google_maps_flutter
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* merged develop branch

* fix

* fix failing test

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Shaik Azad <[email protected]>
Co-authored-by: Shivam Gupta <[email protected]>
Co-authored-by: Parag Gupta <[email protected]>
Co-authored-by: Abhishek Saini <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

Cannot create events in the mobile app because of Google notifications
6 participants