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

Change domain-check fee responses for registrars in tiered promos #2489

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

gbrodman
Copy link
Collaborator

@gbrodman gbrodman commented Jul 1, 2024

As requested, for registrars participaing in these tiered pricing promos that wish to receive this type of response, we make the following changes:

  1. The pre-promotional (i.e. base tier) price is returned as the standard domain-create fee when running a domain check.
  2. The promotional (i.e. correct) price is returned as a special custom command class with a name of "STANDARD PROMO" when running a domain check.
  3. Domain creates will return the non-promotional (i.e. incorrect) price rather than the actual promotional price. This is not implemented in this PR.

This change is Reviewable

@gbrodman gbrodman changed the title Change domain-check fee responses for registrars in tiered pricing pr… Change domain-check fee responses for registrars in tiered promos Jul 1, 2024
@gbrodman gbrodman force-pushed the tieredPromoCheck branch 2 times, most recently from 60a8467 to 43fb88e Compare July 1, 2024 17:59
@gbrodman gbrodman added the kokoro:force-run Force a Kokoro build. label Jul 2, 2024
@domain-registry-eng domain-registry-eng removed the kokoro:force-run Force a Kokoro build. label Jul 2, 2024
@gbrodman gbrodman requested a review from CydeWeys July 2, 2024 18:09
@gbrodman
Copy link
Collaborator Author

gbrodman commented Jul 8, 2024

friendly ping

gbrodman added a commit to gbrodman/nomulus that referenced this pull request Jul 9, 2024
As requested, for registrars participating in these tiered pricing
promos that wish to receive this type of response, we make the following
changes:

1. The non-promotional (i.e. incorrect) price is returned as the
   standard domain-create fee when running a domain check.
2. The promotional (i.e. correct) price is returned as a special custom
   command class with a name of "STANDARD PROMO" when running a domain
   check
3. Domain creates will return the non-promotional (i.e. incorrect) price
   rather than the actual promotional price.

This PR does only number 3. See PR google#2489 for the others.
gbrodman added a commit to gbrodman/nomulus that referenced this pull request Jul 9, 2024
As requested, for registrars participating in these tiered pricing
promos that wish to receive this type of response, we make the following
changes:

1. The non-promotional (i.e. incorrect) price is returned as the
   standard domain-create fee when running a domain check.
2. The promotional (i.e. correct) price is returned as a special custom
   command class with a name of "STANDARD PROMO" when running a domain
   check
3. Domain creates will return the non-promotional (i.e. incorrect) price
   rather than the actual promotional price.

This PR does only number 3. See PR google#2489 for the others.
Copy link
Member

@CydeWeys CydeWeys left a comment

Choose a reason for hiding this comment

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

Hah, for bullet point 1, rather than saying the "incorrect" price, I would call it the pre-promotion, "base tier" price. Pricing tiers is after all how basically all registrars think about domain pricing, even if we don't.

Reviewable status: 0 of 8 files reviewed, all discussions resolved

gbrodman added a commit to gbrodman/nomulus that referenced this pull request Jul 9, 2024
As requested, for registrars participating in these tiered pricing
promos that wish to receive this type of response, we make the following
changes:

1. The pre-promotional (i.e. base tier) price is returned as the
   standard domain-create fee when running a domain check.
2. The promotional (i.e. correct) price is returned as a special custom
   command class with a name of "STANDARD PROMO" when running a domain
   check
3. Domain creates will return the non-promotional (i.e. incorrect) price
   rather than the actual promotional price.

This PR does only number 3. See PR google#2489 for the others.
Copy link
Collaborator Author

@gbrodman gbrodman left a comment

Choose a reason for hiding this comment

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

changed the wording, hah

Reviewable status: 0 of 8 files reviewed, all discussions resolved

Copy link
Member

@CydeWeys CydeWeys left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 8 files reviewed, 2 unresolved discussions (waiting on @gbrodman)


core/src/main/java/google/registry/model/domain/fee/FeeQueryCommandExtensionItem.java line 43 at r1 (raw file):

    RESTORE(true),
    UPDATE(false),
    // We don't accept CUSTOM commands in requests but may issue them in responses.

This should be a Javadoc.


core/src/main/java/google/registry/model/domain/fee/FeeQueryCommandExtensionItem.java line 52 at r1 (raw file):

      try {
        CommandName command = valueOf(string);
        checkArgument(!command.equals(UNKNOWN) && !command.equals(CUSTOM));

At this point it's worth adding a second parameter to the enum constructor that specifies whether it is acceptable for the enum value to be present in domain check requests, which will be false for both UNKNOWN and CUSTOM and true for all others.

Copy link
Member

@CydeWeys CydeWeys left a comment

Choose a reason for hiding this comment

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

LGTM modulo some nits.

Reviewable status: 0 of 8 files reviewed, 2 unresolved discussions (waiting on @gbrodman)

gbrodman added a commit to gbrodman/nomulus that referenced this pull request Jul 9, 2024
As requested, for registrars participating in these tiered pricing
promos that wish to receive this type of response, we make the following
changes:

1. The pre-promotional (i.e. base tier) price is returned as the
   standard domain-create fee when running a domain check.
2. The promotional (i.e. correct) price is returned as a special custom
   command class with a name of "STANDARD PROMO" when running a domain
   check
3. Domain creates will return the non-promotional (i.e. incorrect) price
   rather than the actual promotional price.

This PR does only number 3. See PR google#2489 for the others.
Copy link
Collaborator Author

@gbrodman gbrodman left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 8 files reviewed, 2 unresolved discussions (waiting on @CydeWeys)


core/src/main/java/google/registry/model/domain/fee/FeeQueryCommandExtensionItem.java line 43 at r1 (raw file):

Previously, CydeWeys (Ben McIlwain) wrote…

This should be a Javadoc.

Done.


core/src/main/java/google/registry/model/domain/fee/FeeQueryCommandExtensionItem.java line 52 at r1 (raw file):

Previously, CydeWeys (Ben McIlwain) wrote…

At this point it's worth adding a second parameter to the enum constructor that specifies whether it is acceptable for the enum value to be present in domain check requests, which will be false for both UNKNOWN and CUSTOM and true for all others.

as discussed offline, this does not correspond to domain check requests but rather token actions. Either way, we can do some sort of "acceptable input option" thing

gbrodman added a commit to gbrodman/nomulus that referenced this pull request Jul 9, 2024
As requested, for registrars participating in these tiered pricing
promos that wish to receive this type of response, we make the following
changes:

1. The pre-promotional (i.e. base tier) price is returned as the
   standard domain-create fee when running a domain check.
2. The promotional (i.e. correct) price is returned as a special custom
   command class with a name of "STANDARD PROMO" when running a domain
   check
3. Domain creates will return the non-promotional (i.e. incorrect) price
   rather than the actual promotional price.

This PR does only number 3. See PR google#2489 for the others.
Copy link
Member

@CydeWeys CydeWeys left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 0 of 8 files reviewed, all discussions resolved

@gbrodman gbrodman added this pull request to the merge queue Jul 11, 2024
@gbrodman gbrodman removed this pull request from the merge queue due to a manual request Jul 11, 2024
As requested, for registrars participaing in these tiered pricing promos
that wish to receive this type of response, we make the following
changes:

1. The non-promotional (i.e. incorrect) price is returned as the
   standard domain-create fee when running a domain check.
2. The promotional (i.e. correct) price is returned as a special custom
   command class with a name of "STANDARD PROMO" when running a domain
   check.
3. Domain creates will return the non-promotional (i.e. incorrect) price
   rather than the actual promotional price. This is not implemented in
   this PR.
gbrodman added a commit to gbrodman/nomulus that referenced this pull request Jul 11, 2024
As requested, for registrars participating in these tiered pricing
promos that wish to receive this type of response, we make the following
changes:

1. The pre-promotional (i.e. base tier) price is returned as the
   standard domain-create fee when running a domain check.
2. The promotional (i.e. correct) price is returned as a special custom
   command class with a name of "STANDARD PROMO" when running a domain
   check
3. Domain creates will return the non-promotional (i.e. incorrect) price
   rather than the actual promotional price.

This PR does only number 3. See PR google#2489 for the others.
@gbrodman gbrodman enabled auto-merge July 11, 2024 19:34
@gbrodman gbrodman added this pull request to the merge queue Jul 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 11, 2024
@gbrodman gbrodman added this pull request to the merge queue Jul 12, 2024
Merged via the queue into google:master with commit 04a4431 Jul 12, 2024
8 of 9 checks passed
@gbrodman gbrodman deleted the tieredPromoCheck branch July 12, 2024 16:47
gbrodman added a commit to gbrodman/nomulus that referenced this pull request Jul 12, 2024
As requested, for registrars participating in these tiered pricing
promos that wish to receive this type of response, we make the following
changes:

1. The pre-promotional (i.e. base tier) price is returned as the
   standard domain-create fee when running a domain check.
2. The promotional (i.e. correct) price is returned as a special custom
   command class with a name of "STANDARD PROMO" when running a domain
   check
3. Domain creates will return the non-promotional (i.e. incorrect) price
   rather than the actual promotional price.

This PR does only number 3. See PR google#2489 for the others.
github-merge-queue bot pushed a commit that referenced this pull request Jul 12, 2024
As requested, for registrars participating in these tiered pricing
promos that wish to receive this type of response, we make the following
changes:

1. The pre-promotional (i.e. base tier) price is returned as the
   standard domain-create fee when running a domain check.
2. The promotional (i.e. correct) price is returned as a special custom
   command class with a name of "STANDARD PROMO" when running a domain
   check
3. Domain creates will return the non-promotional (i.e. incorrect) price
   rather than the actual promotional price.

This PR does only number 3. See PR #2489 for the others.
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