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

Add release channels list support #1953

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

sfc-gh-melnacouzi
Copy link
Contributor

@sfc-gh-melnacouzi sfc-gh-melnacouzi commented Dec 13, 2024

Pre-review checklist

  • I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
  • I've added or updated automated unit tests to verify correctness of my new code.
  • I've added or updated integration tests to verify correctness of my new code.
  • I've confirmed that my changes are working by executing CLI's commands manually on MacOS.
  • I've confirmed that my changes are working by executing CLI's commands manually on Windows.
  • I've confirmed that my changes are up-to-date with the target branch.
  • I've described my changes in the release notes.
  • I've described my changes in the section below.

Changes description

Add support for snow app release-channel list [CHANNEL] command.

Integ tests will be added once UIParam is in production

Screenshot 2024-12-16 at 11 36 30 AM Screenshot 2024-12-16 at 11 40 49 AM

@sfc-gh-melnacouzi sfc-gh-melnacouzi requested review from a team as code owners December 13, 2024 21:35
@@ -134,6 +136,99 @@ def ensure_app_roles_is_a_set(
return application_roles


class ReleaseChannel(dict[str, Any]):
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe specify the exact dict structure we're expecting with a TypedDict?
It's the same type that show_release_channels() returns, right? We can reuse it there too.
That way we would also be able to remove the type: ignore comments below.

)

formatted_created_on = (
self.created_on.astimezone().strftime("%Y-%m-%d %H:%M:%S.%f %Z")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:
Why this specific format? Do we already print some datetimes elsewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From the design doc, Bruno wanted something more human readable for console output - in this case, we are outputting the current timezone.
Also, this is not set in stone, as it's only a console output. --format=json part is printed using the default.

@sfc-gh-melnacouzi sfc-gh-melnacouzi merged commit 0257a0e into main Dec 17, 2024
18 checks passed
@sfc-gh-melnacouzi sfc-gh-melnacouzi deleted the melnacouzi-add-release-channel-list-command branch December 17, 2024 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.

2 participants