Skip to content

Fix issue where tester.groups can be undefined - #8195

Merged
joehan merged 5 commits into
masterfrom
aalej-fad-tlist
Feb 10, 2025
Merged

joehan merged 5 commits into
masterfrom
aalej-fad-tlist

Conversation

@aalej

@aalej aalej commented Feb 10, 2025

Copy link
Copy Markdown
Contributor

Description

Fixes #8191

Checking API explorer in https://firebase.google.com/docs/reference/app-distribution/rest/v1/projects.testers/list. Executing the method returns a JSON response of:

{
  "testers": [
    {
      "name": "projects/PROJECT_NUMBER/testers/[email protected]",
      "groups": [
        "projects/PROJECT_NUMBER/groups/qa",
        "projects/PROJECT_NUMBER/groups/developers"
      ],
      "lastActivityTime": "2024-11-14T13:10:19.256962Z"
    },
    {
      "name": "projects/PROJECT_NUMBER/testers/[email protected]",
      "lastActivityTime": "2025-01-30T14:03:28.146030Z"
    }
  ]
}

It looks like testers not part of any groups return a Tester object that does not have a groups field

Scenarios Tested

Run firebase appdistribution:testers:list --project PROJECT_ID

$ firebase appdistribution:testers:list --project PROJECT_ID
(node:29657) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
✔ Preparing the list of your App Distribution testers
┌───────────────────────────┬──────────────┬──────────────────────────────────────────────────────────────┬───────────────┐
│ Name                      │ Display Name │ Last Activity Time                                           │ Groups        │
├───────────────────────────┼──────────────┼──────────────────────────────────────────────────────────────┼───────────────┤
│ [email protected] │              │ Thu Nov 14 2024 21:10:19 GMT+0800 (Philippine Standard Time) │ developers;qa │
├───────────────────────────┼──────────────┼──────────────────────────────────────────────────────────────┼───────────────┤
│ [email protected]      │              │ Thu Jan 30 2025 22:03:28 GMT+0800 (Philippine Standard Time) │               │
└───────────────────────────┴──────────────┴──────────────────────────────────────────────────────────────┴───────────────┘
✔  Testers listed successfully

Sample Commands

@joehan joehan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the quick fix!

@joehan
joehan enabled auto-merge (squash) February 10, 2025 17:56
@joehan
joehan merged commit 6ba30b9 into master Feb 10, 2025
@aalej
aalej deleted the aalej-fad-tlist branch March 25, 2025 14:17
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.

Error on firebase appdistribution:testers:list

2 participants