Skip to content

Release 2.8.0#412

Merged
jujubot merged 1 commit intojuju:masterfrom
hpidcock:fix-missing-facade
May 13, 2020
Merged

Release 2.8.0#412
jujubot merged 1 commit intojuju:masterfrom
hpidcock:fix-missing-facade

Conversation

@hpidcock
Copy link
Copy Markdown
Member

  • Update facade methods for Juju 2.8.0
  • Fixes codegen for Python 3.7+
  • Nested facade definitions are now deserialised properly (e.g. storage on ApplicationDeploy)

Copy link
Copy Markdown
Member

@wallyworld wallyworld left a comment

Choose a reason for hiding this comment

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

Good catch on the nested args.
I assume there's been a manual test done using this to drive a 2.8 controller. If not, can it be done prior to landing?

Copy link
Copy Markdown
Contributor

@howbazaar howbazaar left a comment

Choose a reason for hiding this comment

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

Just one question, non-blocking.

Comment thread juju/client/_client10.py
application : str
branch : str
Returns -> typing.Union[str, typing.Mapping[str, typing.Any], _ForwardRef('Value')]
Returns -> typing.Union[str, typing.Mapping[str, typing.Any], ForwardRef('Value')]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you know why these changed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

They were internal types pre 3.7

@hpidcock
Copy link
Copy Markdown
Member Author

hpidcock commented May 13, 2020

Good catch on the nested args.
I assume there's been a manual test done using this to drive a 2.8 controller. If not, can it be done prior to landing?

Yep tested some examples against both a k8s and lxd controller on 2.8

@hpidcock
Copy link
Copy Markdown
Member Author

!!build!!

- Update facade methods for Juju 2.8.0
- Fixes codegen for Python 3.7+
- Nested facade definitions are now deserialised properly (e.g. storage on ApplicationDeploy)
@hpidcock hpidcock force-pushed the fix-missing-facade branch from 6f4a6f4 to 4d2895a Compare May 13, 2020 04:24
@hpidcock
Copy link
Copy Markdown
Member Author

$$merge$$

1 similar comment
@hpidcock
Copy link
Copy Markdown
Member Author

$$merge$$

@ryan-beisner
Copy link
Copy Markdown
Contributor

Hi all - this patch and the 2.8.0 libjuju release regressed usage in all of the OpenStack Charm gates:
#413

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.

*** TypeError: 'ActionSpec' object is not subscriptable

5 participants