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

Bug Fix: Unable to logout after initial login ( closes 1581 ) #1620

Merged

Conversation

SiddheshKukade
Copy link
Member

What kind of change does this PR introduce?

Logout feature was not working I've fixed the issue.

Issue Number:

Fixes #1581

Did you add tests for your changes?

Not required
Snapshots/Videos:

talawa.023.rea.mp4

Does this PR introduce a breaking change?
No

Have you read the contributing guide?
yes

@SiddheshKukade SiddheshKukade changed the title Fix 1581 logout Bug Fix: Unable to logout after initial login ( closes 1581 ) Mar 5, 2023
Comment on lines 23 to 24
import 'package:talawa/widgets/custom_progress_dialog.dart';

import '../../../widgets/custom_progress_dialog.dart';
Copy link
Member Author

Choose a reason for hiding this comment

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

Refractor: This is the conventional way of importing packages.

Comment on lines 88 to 95
try {
Firebase.app()
.delete(); // Deleting app will stop all Firebase plugins
} catch (e) {
debugPrint(
"ERROR: Unable to delete firebase app" + e.toString());
}

Copy link
Member Author

Choose a reason for hiding this comment

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

Fix: Firebase throws error if it's not initialized previously. Added a try {..} catch{..} to fix it,

@palisadoes
Copy link
Contributor

Closing. You are not assigned the issue.

@palisadoes palisadoes closed this Mar 5, 2023
@palisadoes
Copy link
Contributor

Reopening as the assignee asked that you work on it.

@palisadoes palisadoes reopened this Mar 5, 2023
@codecov
Copy link

codecov bot commented Mar 5, 2023

Codecov Report

Merging #1620 (06832ff) into develop (579d32a) will increase coverage by 3.04%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #1620      +/-   ##
===========================================
+ Coverage    77.34%   80.38%   +3.04%     
===========================================
  Files          145      145              
  Lines         7216     7275      +59     
===========================================
+ Hits          5581     5848     +267     
+ Misses        1635     1427     -208     
Impacted Files Coverage Δ
...s/profile_view_models/profile_page_view_model.dart 4.42% <0.00%> (-0.08%) ⬇️
lib/services/user_config.dart 37.33% <0.00%> (ø)
lib/services/event_service.dart 15.38% <0.00%> (ø)
lib/services/navigation_service.dart 60.00% <0.00%> (ø)
lib/widgets/talawa_error_dialog.dart 100.00% <0.00%> (ø)
lib/views/pre_auth_screens/signup_details.dart 100.00% <0.00%> (ø)
...model/pre_auth_view_models/set_url_view_model.dart 100.00% <0.00%> (ø)
...ter_auth_screens/join_organisation_after_auth.dart 75.53% <0.00%> (ø)
.../widgets_view_models/custom_drawer_view_model.dart 100.00% <0.00%> (ø)
...re_auth_view_models/signup_details_view_model.dart 100.00% <0.00%> (ø)
... and 24 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@SiddheshKukade
Copy link
Member Author

SiddheshKukade commented Mar 5, 2023

@palisadoes Sir, the code is ready to be reviewed.
Here the codecov patch is failing due to new lines being introduced and not covered in the current test files. I think there can be a separate issue for that. But the current changes are sufficient to fix bug from #1581.
image

@palisadoes palisadoes merged commit 398c13e into PalisadoesFoundation:develop Mar 5, 2023
ikjot-2605 pushed a commit to ikjot-2605/talawa that referenced this pull request Mar 8, 2023
…doesFoundation#1620)

* Create .gitpod.yml

* Create .gitpod.Dockerfile

* Add/temp-file

* Add/temp-plugin

gives sample demo for `TalawaPluginProvider `

* remove/unecessary-files#1

* remove/unecessary-files#2

* Add/TalwaPluginProvider

* Add/queries `getPluginsList`

* Docs for 'TalawaPluginProvider'

* `Add/fetch_plugin_list`

* Refractoring & adding `fetchPlugins` in main

* Delete sa.dart

* Delete tempPlugin.dart

* Test/ `Tawla Plugin Provider`

* Refractor : Added `Braintree` config in AndroidManifest.xml

* Refractor : Added `Talawa_plugin_provider_nav` to control plugins visibility in navbar

* Update : Main file setState fix

* Changed  ios version from  `10.0` to `12.0`

* Add : `Donation` feature as Plugin with braintree API

* Add : `createDonation` Mutation

* Fix : `Plugin` render bug

* Chores : Formatted  files

* Add : `navBarItems` (features) as plugins

* Chores : Formatting

* Update : Profile removed key

* Chores : Add `Flutter_Braintree`

* Chores : Fix `Lint errors`

* Fix : Formatting Errors

* Delete talawa_plugin_provider_nav.dart

* Update pull-request.yml

* Added a empty line in main

* Update pull-request.yml

* Fix  : Faling tests

* Fix : Failing test PalisadoesFoundation#2 commented out `teste.pumpAndSetttle`

* Remove : all the changes done in the `custom_drawer_test.dart`

Removed everthing that I've added to check if it will pass the test or not.

* PR Fail Fix  Attempt PalisadoesFoundation#1 : Added `fetchPluginLIst` in `main.dart`

* PR Fail Fix Attempt PalisadoesFoundation#2  : Commenting test cases to check furthur problems

* Chores  : Commented  Imports

* Deleted : Test file

* Fix:  Trigger workflow

* Add : Faling test back `custom_drawer_test.dart`

* Add Test for `utils/query.dart`

* Add : Tests `queries_test.dart`

* Add : Tests `chat_queries_test.dart`

* Add : Test for `comment_queries_test.dart`

* Add : test for `event_queries_test`

* Add :  test for `post_qurie..dart`

* Add : test for `post_query.dart`

* Add : test for `task_queries.dart`

* Add  : test for `utils/validator.dart`

* Fix : failing tests

* Test : Failing test uncommented `custom_drawer_test.dart`

* Fix : Commented `custom_drawer_test.dart`

* removed utils tests

* Removed Commented Code

* add/table of contents and link to installation file.

* Add/ Date validation closes  PalisadoesFoundation#1590

* Add Import

* Add/ Date validation closes PalisadoesFoundation#1590

* Fix login bug closes  PalisadoesFoundation#1581

* removed extra changes

* CI CD FIX
@SiddheshKukade SiddheshKukade deleted the fix-1581-logout branch April 14, 2023 02:36
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.

Unable to logout after initial login
2 participants