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

[JUJU-4110] charm_name on Application object #901

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

cderici
Copy link
Contributor

@cderici cderici commented Jul 10, 2023

Description

Adds the charm_name property in Application object, which saves people from going through the status and stripping things from the charm URL, just to get the name of the charm.

Fixes #888

The issue in there was that the FullStatus actually returns the charm URL as the charm field in [] ApplicationStatus field, but the client is aliasing it before printing so you see only the charm name in the juju status --format yaml

https://github.com/juju/juju/blob/87d8ddc9de5219b3a1d854e14ee4c90a7d781d25/cmd/juju/status/formatter.go#L267

QA Steps

tox -e integration -- tests/integration/test_application.py::test_app_charm_name

@cderici cderici added hint/2.9 going on 2.9 branch area/forward-port to be forward ported - remove label after port labels Jul 10, 2023
@cderici
Copy link
Contributor Author

cderici commented Jul 12, 2023

/merge

@jujubot jujubot merged commit e0c5d8b into juju:2.9 Jul 12, 2023
9 checks passed
@cderici cderici removed the area/forward-port to be forward ported - remove label after port label Jul 14, 2023
jujubot added a commit that referenced this pull request Jul 20, 2023
#910

#### Description

This brings forward from `2.9` the following PRs: #901, #905, and #896 into `3.x` (the main branch).

#### QA Steps

There were a couple of conflicts that needed to be fixed, so QA will be necessary, make sure the following tests are passing:

```
tox -e integration -- tests/integration/test_application.py::test_app_charm_name
```
```
tox -e py3 -- -m wait_for_idle
```

```
tox -e integration -- -m wait_for_idle
```
```sh
tox -e integration -- tests/integration/test_model.py::test_deploy_bundle_local_charm_series_manifest
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hint/2.9 going on 2.9 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants