-
Notifications
You must be signed in to change notification settings - Fork 35
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
1592, Customer API: specify service_type attribute for Service API resource #1608
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ivanov-Anton
changed the title
1592, specify service_type attribute for Service API resource
1592, Customer API: specify service_type attribute for Service API resource
Nov 6, 2024
Ivanov-Anton
force-pushed
the
specify-type-for-service-api-resource
branch
from
November 6, 2024 22:37
26fda9e
to
b75dae1
Compare
Ivanov-Anton
added
the
Waiting for code review
It means that the owner or member of the repositor can do a code review.
label
Nov 7, 2024
Ivanov-Anton
force-pushed
the
specify-type-for-service-api-resource
branch
from
November 7, 2024 21:49
b75dae1
to
4398f17
Compare
Ivanov-Anton
removed
the
Waiting for code review
It means that the owner or member of the repositor can do a code review.
label
Nov 7, 2024
Ivanov-Anton
force-pushed
the
specify-type-for-service-api-resource
branch
from
November 7, 2024 21:52
4398f17
to
54a6902
Compare
app/admin/billing/service_types.rb
Outdated
@@ -58,6 +61,7 @@ | |||
f.input :name | |||
f.input :force_renew | |||
f.input :provisioning_class, as: :select, collection: Billing::ServiceType.available_provisioning_classes, input_html: { class: :chosen } | |||
f.input :ui_type, hint: 'This string will be used for Customer API of Service Resource' |
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.
hint shouldn't be hardcoded, it should be added to config/locales/en.yml
@@ -26,11 +27,16 @@ class Api::Rest::Customer::V1::ServiceResource < Api::Rest::Customer::V1::BaseRe | |||
type: :enum, | |||
column: :renew_period_id, | |||
collection: Billing::Service::RENEW_PERIODS.values | |||
ransack_filter :ui_type, type: :string |
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 don't need filters there
Ivanov-Anton
force-pushed
the
specify-type-for-service-api-resource
branch
from
November 9, 2024 20:39
54a6902
to
4444718
Compare
Ivanov-Anton
added
the
Waiting for code review
It means that the owner or member of the repositor can do a code review.
label
Nov 10, 2024
Ivanov-Anton
force-pushed
the
specify-type-for-service-api-resource
branch
from
November 10, 2024 22:05
4444718
to
e7ff6c2
Compare
Ivanov-Anton
removed
the
Waiting for code review
It means that the owner or member of the repositor can do a code review.
label
Nov 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
specify the
ui_type
attribute for Service API resource of Customer APIadded filter for Service Customer API resource
filter[ui-type-eq]
example of response from service customer API
Additional links
related to #1592
https://github.com/yeti-switch/yeti-client/pull/178