Skip to content

feat: Added popup that tells users to set up project id if it's not set up [MTT-3265][MTT-3237] #607

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

Merged
merged 4 commits into from
Apr 13, 2022

Conversation

pdeschain
Copy link
Contributor

Description

I've added the popup that tells users to set up their project id. Also adjusted the flow slightly - if there's no project id, we block away the lobby UI and prevent attempts to authenticate (they'd cause errors and nuisance popups)

Issue Number(s)

MTT-3265

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • JIRA ticket ID is in the PR title or at least one commit message
  • Include the ticket ID number within the body message of the PR to create a hyperlink

Also adjusted the flow slightly - if there's no project id, we block away the lobby UI and prevent attempts to authenticate (they'd cause errors and nuisance popups)
@pdeschain pdeschain added 2-Easy This PR is trivial and can be reviewed quickly 1-Needs Review PR needs attention from the assignee and reviewers labels Apr 12, 2022
@SamuelBellomo SamuelBellomo added 2-Reviewed with Comments PR requires owner's attention and removed 1-Needs Review PR needs attention from the assignee and reviewers labels Apr 12, 2022
Copy link
Contributor

@LPLafontaineB LPLafontaineB left a comment

Choose a reason for hiding this comment

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

If we try to host a game through direct IP without the project id setup, it now gives us an exception and prevents us from doing so. Is that intentional or a bug? Should playing through direct IP still be allowed?

@pdeschain pdeschain added 1-Needs Review PR needs attention from the assignee and reviewers and removed 2-Reviewed with Comments PR requires owner's attention labels Apr 13, 2022
@LPLafontaineB LPLafontaineB added 2-One More Review One review in, one to go and removed 1-Needs Review PR needs attention from the assignee and reviewers labels Apr 13, 2022
Copy link
Collaborator

@fernando-cortez fernando-cortez left a comment

Choose a reason for hiding this comment

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

This resolves MTT-3237, so I'll assign that one to you @pdeschain.

@fernando-cortez fernando-cortez added 3-Good to Merge and removed 2-One More Review One review in, one to go labels Apr 13, 2022
@pdeschain pdeschain changed the title feat: Added popup that tells users to set up project id if it's not set up [MTT-3265] feat: Added popup that tells users to set up project id if it's not set up [MTT-3265][MTT-3237] Apr 13, 2022
@pdeschain pdeschain merged commit ff04a3c into develop Apr 13, 2022
@pdeschain pdeschain deleted the pdeschain/popup-when-projectid-is-not-set-up branch April 13, 2022 13:58
@@ -46,6 +45,15 @@ protected override void InitializeScope()
[Inject]
async void InjectDependenciesAndInitialize(AuthenticationServiceFacade authServiceFacade, LocalLobbyUser localUser, LocalLobby localLobby)
{
#if UNITY_EDITOR
if (string.IsNullOrEmpty(UnityEditor.CloudProjectSettings.projectId))
Copy link
Contributor

Choose a reason for hiding this comment

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

There's no way to check with Application.cloudProjectId? And this way it would work in builds too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-Easy This PR is trivial and can be reviewed quickly 3-Good to Merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants