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

outcalls: auto generate name to improve multi-tenancy #402

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bloom1
Copy link
Member

@bloom1 bloom1 commented Jul 6, 2023

@wazo-community-zuul
Copy link
Contributor

Build failed.

@bloom1 bloom1 force-pushed the WAZO-3314-multi-tenant-outcall branch from 298f8e5 to 97549ab Compare July 6, 2023 19:48
@wazo-community-zuul
Copy link
Contributor

Build failed.

@wazo-community-zuul
Copy link
Contributor

Build succeeded.

@bloom1 bloom1 added the mergeit label Jul 7, 2023
@bloom1 bloom1 force-pushed the WAZO-3314-multi-tenant-outcall branch from 26fe1c3 to 045c899 Compare July 10, 2023 13:29
@wazo-community-zuul
Copy link
Contributor

Build succeeded.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -40,6 +44,18 @@ class OutcallSchema(BaseSchema):
dump_only=True,
)

# DEPRECATED 23.10
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# DEPRECATED 23.10
# DEPRECATED 23.11

# Outcalls do not use UUIDs yet
form['name'] = self.outcall_name_fmt.format(
tenant_slug=tenant.slug,
outcall_uuid=uuid4(),
Copy link
Member

Choose a reason for hiding this comment

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

same comment as: #401 (comment)
About adding uuid in database

Comment on lines -50 to -55
yield s.check_bogus_field_returns_error, url, 'name', True
yield s.check_bogus_field_returns_error, url, 'name', None
yield s.check_bogus_field_returns_error, url, 'name', s.random_string(129)
yield s.check_bogus_field_returns_error, url, 'name', 1234
yield s.check_bogus_field_returns_error, url, 'name', []
yield s.check_bogus_field_returns_error, url, 'name', {}
Copy link
Member

Choose a reason for hiding this comment

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

same comment as #401 (comment)
about testing deprecated name

@@ -15,5 +14,4 @@ def build_validator():
create=[
UniqueField('name', lambda name: outcall_dao.find_by(name=name), 'Outcall')
Copy link
Member

Choose a reason for hiding this comment

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

I would remove this validator too, since the input does not come from the user anymore

@sduthil sduthil removed the mergeit label Mar 15, 2024
@sduthil sduthil marked this pull request as draft March 15, 2024 10:19
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