-
Notifications
You must be signed in to change notification settings - Fork 11
feat: Fir 24158 new identity resource manager #266
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
feat: Fir 24158 new identity resource manager #266
Conversation
ptiurin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, unit tests are kaput :'(
| def refresh(self) -> None: | ||
| """Update attributes of the instance from Firebolt.""" | ||
| field_name_overrides = self._get_field_overrides() | ||
| for name, value in self._service._get_dict(self.name).items(): | ||
| setattr(self, field_name_overrides.get(name, name), value) | ||
|
|
||
| self.__post_init__() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not entirely clear why we're refreshing attributes here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just fetch the engine state from db and update each class field with a new value.
Then we do post init for value post processing
ptiurin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from that LGTM
204ea67 to
ac9c7c7
Compare
|
Kudos, SonarCloud Quality Gate passed! |








Updated ResourceManager to use a new SQL api to handle resources