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

Feature/local feature flag #240

Conversation

mohammadkhizerkhan
Copy link
Contributor

@mohammadkhizerkhan mohammadkhizerkhan commented Sep 6, 2023

  • adding local feature flag
  • it will switch from prod to stag and vice-versa
Screenshot 2023-09-13 at 11 51 03 PM Screenshot 2023-09-13 at 11 52 53 PM Screenshot 2023-09-13 at 11 53 20 PM
Screen.Recording.2023-09-16.at.8.18.39.PM.mov

@mohammadkhizerkhan mohammadkhizerkhan changed the base branch from develop to staging September 6, 2023 18:08
Copy link
Collaborator

@shreya-mishra shreya-mishra left a comment

Choose a reason for hiding this comment

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

please fix below comments

@@ -257,6 +261,18 @@ const AuthScreen = () => {
text={Strings.SIGN_IN_WITH_WEB}
onPress={activateCamera}
/>
<AuthScreenButton
text={
API_BASE_URL === 'https://api.realdevsquad.com/'
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we check this in some other file?

@@ -0,0 +1,24 @@
export const featureFlagState = {
API_BASE_URL: 'https://api.realdevsquad.com/',
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's move base api url in constant file

case 'STAGING':
return {
...state,
API_BASE_URL: 'https://staging-api.realdevsquad.com/',
Copy link
Collaborator

Choose a reason for hiding this comment

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

doesnt look good

@sahsisunny
Copy link
Member

@mohammadkhizerkhan, should we hide the feature flag or make it less visible to normal users? If so, why give them a button to switch between different environments? We could add gestures or toggle buttons to switch instead.

@mohammadkhizerkhan
Copy link
Contributor Author

@mohammadkhizerkhan, should we hide the feature flag or make it less visible to normal users? If so, why give them a button to switch between different environments? We could add gestures or toggle buttons to switch instead.

yes, i need to discuss this with @shreya-mishra.
and i think we are not going to show this feature to normal user

Copy link
Collaborator

@shreya-mishra shreya-mishra left a comment

Choose a reason for hiding this comment

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

can I have the video of switching the feature as well for example if we are in prod then it should show only profile and home screen otherwise it should show all three tabs

@mohammadkhizerkhan mohammadkhizerkhan deleted the feature/local-feature-flag branch September 17, 2023 14:06
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.

3 participants