Skip to content

Use uppercase countryCode as index for $countries assoc array - #963

Merged
eldadfux merged 3 commits into
devfrom
fix-933-country-name-unknown-for-sessions
Mar 9, 2021
Merged

eldadfux merged 3 commits into
devfrom
fix-933-country-name-unknown-for-sessions

Conversation

@kodumbeats

Copy link
Copy Markdown
Contributor

What does this PR do?

Correctly assigns countryName from countryCode, as the associative array $countries expects uppercase country codes.

Test Plan

  • Login to public-facing appwrite server
  • Navigate to /console/account/activity
  • Verify countryName is not Unknown in the UI or in the network request to GET /account/sessions

Related PRs and Issues

#933

Screenshot

sessioncountry

Have you read the Contributing Guidelines on issues?

Yes.

@eldadfux

eldadfux commented Mar 8, 2021

Copy link
Copy Markdown
Member

Looks good. I think we might have another appearance of that in the users controller.

@eldadfux

eldadfux commented Mar 9, 2021

Copy link
Copy Markdown
Member

@kodumbeats please update the changelog as well. We can push this fix on 0.7.1, @TorstenDittmann and I, will wait to get this merged

@eldadfux
eldadfux merged commit e22d35b into dev Mar 9, 2021
@eldadfux
eldadfux deleted the fix-933-country-name-unknown-for-sessions branch March 29, 2021 19:32
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.

2 participants