Skip to content

fetch latest enterprise appliance IPs from msd#3008

Merged
havetisyan merged 1 commit into
AthenZ:masterfrom
tsultanov00:msd-updated-ips
Jul 8, 2025
Merged

fetch latest enterprise appliance IPs from msd#3008
havetisyan merged 1 commit into
AthenZ:masterfrom
tsultanov00:msd-updated-ips

Conversation

@tsultanov00

Copy link
Copy Markdown
Contributor

Description

  • Updated API call to fetch latest enterprise appliance IPs from MSD

Contribution Checklist:

  • The pull request does not introduce any breaking changes
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Attach Screenshots (Optional)

Comment thread ui/src/server/handlers/api.js Outdated
read(req, resource, params, config, callback) {
req.clients.msd.getWorkloadsByService(
{ domainName: params.domainName, serviceName: params.serviceName },
create(req, resource, params, body, config, callback) {

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.

what is the idea behind switching from read to create request type? Are we doing any changes with this request on the backend?

@tsultanov00 tsultanov00 Jul 7, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It wasn't initially documented, but from digging a bit further into the fetchr src code, there is a flag that we can use to allow POST requests with the read operation. I have made some changes to reflect this

Comment thread ui/src/api.js Outdated
serviceNames: [serviceName],
},
],
resolveStaticWorkloads: true,

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.

one small improvement: depending on the category we can set resolveStaticWorkloads/fetchDynamicTypeWorkloads to true/false.
If category is static then we do not look at the dynamic response so will be efficient if we set fetchDynamicTypeWorkloads to false and vice versa with fetchDynamicTypeWorkloads

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good observation, I have made a change to reflect this

Signed-off-by: Timur Sultanov <timur.sultanov@yahooinc.com>
onUpdateSuccess={this.props.onSubmit}
color={color}
key={item.uuid}
key={i}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

uuid property doesn't exist under item, this gets rid of a react warning

@havetisyan havetisyan merged commit 699bf95 into AthenZ:master Jul 8, 2025
3 checks passed
chandrasekhar1996 pushed a commit to chandrasekhar1996/athenz that referenced this pull request Jul 18, 2025
Signed-off-by: Timur Sultanov <timur.sultanov@yahooinc.com>
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.

4 participants