mentorship-flutter icon indicating copy to clipboard operation
mentorship-flutter copied to clipboard

fix: add token expired message and fix navigation and title text

Open techno-disaster opened this issue 5 years ago • 13 comments

Description

This PR fixes the issue where the jwt token is expired and the user has to relogin to fix this. This PR also fixes the issue where the user could not navigate properly after clicking on the "Find Members" button, this also fixes the issue where text in app titile wont change

Fixes #118 Fixes #113 Fixes #124

Flutter Channel:

  • [x] I have used the Flutter Beta channel on my local machine

Type of Change:

Delete irrelevant options.

  • User Interface

How Has This Been Tested?

Physical Device

ezgif com-video-to-gif (1)

Checklist:

  • [x] My PR follows the style guidelines of this project
  • [x] I have performed a self-review of my own code or materials
  • [x] I have commented my code or provided relevant documentation, particularly in hard-to-understand areas
  • [x] I have made corresponding changes to the documentation
  • [x] Any dependent changes have been merged

s

techno-disaster avatar Jul 30 '20 05:07 techno-disaster

@anitab-org/qa-team can someone give this a quick test?

techno-disaster avatar Aug 02 '20 12:08 techno-disaster

@Techno-Disaster @isabelcosta didn't tested the first test case of token expire message as for this i have to wait for 7 days till it expires 😅 will update after a week .

robotjellyzone avatar Aug 09 '20 09:08 robotjellyzone

@Techno-Disaster @isabelcosta didn't tested the first test case of token expire message as for this i have to wait for 7 days till it expires 😅 will update after a week .

you can host the backup on your laptop and change that time.

techno-disaster avatar Aug 09 '20 10:08 techno-disaster

I have tested this pr , it requires some changes as can be seen below :

The changes made in this PR were tested locally. Following are the results:

1. Code Review : Done

2. All possible responses were tested as below :

Screenshot/gif :

title text not changing

Expected Result : When I change a screen through clicking the bottom navigation menu the screen titles should change accordingly. Actual Result : Not working in the expected manner. Title text remains the same even on navigating to different tabs at bottom

find members

Expected Result : On clicking Find Members, it should lead you to the Members Page Actual Result : When I first clicked it after I was just logged in then it was working fine and leading me to the Members Page but after again clicking it, it's not working and not leading anywhere.

3. Remaining Test Case : For testing the token I need to wait for 7 days till it expires. I Will update on it after Week 4. Additional test cases covered : n/a 5. Device : Emulator Pixel 2 XL API 27

@robotjellyzone are you sure its not working? can you try pulling the latest changes from my branch just to be sure? I just tested this on my device again and it works just fine.

techno-disaster avatar Aug 12 '20 18:08 techno-disaster

@robotjellyzone any updates?

techno-disaster avatar Aug 19 '20 22:08 techno-disaster

@anitab-org/qa-team @anitab-org/mentorship-flutter-maintainers any updates?

techno-disaster avatar Aug 25 '20 00:08 techno-disaster

@anitab-org/mentorship-flutter-maintainers @anitab-org/coding-team can someone review this?

techno-disaster avatar Sep 09 '20 13:09 techno-disaster

@robotjellyzone any updates?

hi, @Techno-Disaster can you please provide an account to check for this members button as it's not there due to the already present relation on the relation page ?

robotjellyzone avatar Sep 09 '20 15:09 robotjellyzone

@robotjellyzone any updates?

hi, @Techno-Disaster can you please provide an account to check for this members button as it's not there due to the already present relation on the relation page ?

Hey, I don't have one right now, but could you create one? If not I can get back to you by tommorow. Thanks

techno-disaster avatar Sep 09 '20 15:09 techno-disaster

@robotjellyzone any updates?

hi, @Techno-Disaster can you please provide an account to check for this members button as it's not there due to the already present relation on the relation page ?

Hey, I don't have one right now, but could you create one? If not I can get back to you by tommorow. Thanks

ok i will create new as i have already created many so, sometimes creates confusion but ok I will create one now :)

robotjellyzone avatar Sep 09 '20 15:09 robotjellyzone

ometimes creates confusion but ok I will create one now :)

same here 🤦 . Thanks for the cooperation tho :)

techno-disaster avatar Sep 09 '20 18:09 techno-disaster

ometimes creates confusion but ok I will create one now :)

same here 🤦 . Thanks for the cooperation tho :)

it will be great if you can test the token expiry feature by yourself :) as it requires a time span to be given .!!

robotjellyzone avatar Sep 09 '20 18:09 robotjellyzone

@robotjellyzone thank you so so much for testing this 🙌 And about the token expiry test, I can always see how that goes in the future. I'll test that eventually.

isabelcosta avatar Sep 09 '20 22:09 isabelcosta