Skip to content

Conversation

@kamalgovindgj
Copy link

Changes made commenting the print statements and added new client method for aispm

javelin_api_key = selected_gateway["api_key_value"]

# Ensure the API key is set before initializing
if not javelin_api_key or javelin_api_key == "":
Copy link
Contributor

Choose a reason for hiding this comment

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

every gateway will have javelin_api_key. msging here might confuse the user. remove this check.

security_interval=args.security_interval
)
return client.aispm.create_customer(customer)

Copy link
Contributor

@abhijitjavelin abhijitjavelin Jan 15, 2025

Choose a reason for hiding this comment

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

run 'black javelin_cli/_internal/commands.py' on the changes to remove trailing spaces and format the file.

except Exception as e:
print(f"Error getting AWS configurations: {e}")

def delete_aws_config(args):
Copy link
Contributor

Choose a reason for hiding this comment

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

pls move impl to service like rest of the methods.

is_transformation_rules=request.is_transformation_rules,
is_reload=request.is_reload,
)
if request.route.startswith("v1/admin/aispm"):
Copy link
Contributor

Choose a reason for hiding this comment

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

pls move to construct_url fn

return url, headers

def _send_request_sync(self, request: Request) -> httpx.Response:
return self._core_send_request(self.client, request)
Copy link
Contributor

Choose a reason for hiding this comment

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

pls revert back.


return url

def _construct_aispm_url(self, request: Request) -> str:
Copy link
Contributor

Choose a reason for hiding this comment

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

not required, since its moving to construct_url

is_reload=request.is_reload,
)
if request.route.startswith("v1/admin/aispm"):
url = f"{self.config.base_url.rstrip('/')}/{request.route}"
Copy link
Contributor

Choose a reason for hiding this comment

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

move this logic to contrust_url fn

@abhijitjavelin abhijitjavelin self-requested a review January 22, 2025 16:00
Copy link
Contributor

@abhijitjavelin abhijitjavelin left a comment

Choose a reason for hiding this comment

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

pls run 'black .' on files you updated.
move aispm url contruction logic to contrust_url

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.

3 participants