Skip to content

fix : removed multiple user/self fetch#603

Merged
bhtibrewal merged 22 commits intoRealDevSquad:developfrom
Shah-Arsalan:refactor/removing-multiple-user-fetch
Jul 5, 2023
Merged

fix : removed multiple user/self fetch#603
bhtibrewal merged 22 commits intoRealDevSquad:developfrom
Shah-Arsalan:refactor/removing-multiple-user-fetch

Conversation

@Shah-Arsalan
Copy link
Contributor

@Shah-Arsalan Shah-Arsalan commented Jun 2, 2023

Issue: #582 remove the multiple users/self fetch

Description: The task is to remove the multiple use/self fetch calls and to abstract the logic for determining whether the user is authorized or not based on the fact whether user is admin or not.

I have made a custom hook to abstract the logic to determine whether the user is authorized or not

Dev Tested:

  • Yes

Implementation showed in video:

Before super user access :

withoutsuper.webm

After super user access :

withsuper.webm

Signin/Signout

screen-capture.webm

@vercel
Copy link

vercel bot commented Jun 2, 2023

@Shah-Arsalan is attempting to deploy a commit to the RDS-Team Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@Pratiyushkumar Pratiyushkumar left a comment

Choose a reason for hiding this comment

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

.

Copy link
Contributor

@Pratiyushkumar Pratiyushkumar left a comment

Choose a reason for hiding this comment

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

Please resolve merge conflict as well

Copy link
Contributor

@shubhamsinghbundela shubhamsinghbundela left a comment

Choose a reason for hiding this comment

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

Great work @Shah-Arsalan

Copy link
Contributor

@Pratiyushkumar Pratiyushkumar left a comment

Choose a reason for hiding this comment

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

Rest everything looks good to me

Copy link
Contributor

@Pratiyushkumar Pratiyushkumar left a comment

Choose a reason for hiding this comment

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

Please resolve above comments before asking for re-review

Copy link
Contributor

@bhtibrewal bhtibrewal left a comment

Choose a reason for hiding this comment

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

Good work @Shah-Arsalan👏🏼 , left 2 small comments please look into those

Copy link
Contributor

@bharati-21 bharati-21 left a comment

Choose a reason for hiding this comment

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

Left a few comments.

@bhtibrewal bhtibrewal mentioned this pull request Jun 30, 2023
17 tasks
bharati-21
bharati-21 previously approved these changes Jul 2, 2023
Copy link
Contributor

@bharati-21 bharati-21 left a comment

Choose a reason for hiding this comment

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

LGTM

Pratiyushkumar
Pratiyushkumar previously approved these changes Jul 2, 2023
Copy link
Contributor

@Pratiyushkumar Pratiyushkumar left a comment

Choose a reason for hiding this comment

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

LGTM

bhtibrewal
bhtibrewal previously approved these changes Jul 4, 2023
Copy link
Contributor

@bhtibrewal bhtibrewal left a comment

Choose a reason for hiding this comment

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

LGTM

bhtibrewal
bhtibrewal previously approved these changes Jul 4, 2023
Copy link
Contributor

@bhtibrewal bhtibrewal left a comment

Choose a reason for hiding this comment

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

LGTM

kotesh-arya
kotesh-arya previously approved these changes Jul 4, 2023
@Shah-Arsalan Shah-Arsalan dismissed stale reviews from kotesh-arya and bhtibrewal via 6f6bd0e July 4, 2023 18:56
Copy link
Contributor

@bharati-21 bharati-21 left a comment

Choose a reason for hiding this comment

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

LGTM

@bhtibrewal bhtibrewal merged commit b150b9a into RealDevSquad:develop Jul 5, 2023
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.

7 participants