Skip to content

Use custom domain for Edge endpoint when configured#227

Merged
kevinlind merged 10 commits intoadobe:devfrom
kevinlind:mob-14959
Jan 11, 2022
Merged

Use custom domain for Edge endpoint when configured#227
kevinlind merged 10 commits intoadobe:devfrom
kevinlind:mob-14959

Conversation

@kevinlind
Copy link
Copy Markdown
Contributor

Description

Read Configuration shared state for 'edge.domain' key. Change EdgeEndpoint from enum to struct to hold endpoint URL as String. Build URL based on type (prod, pre-prod, int) and custom domain.

Internal ticket: MOB-14959

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Read Configuration shared state for 'edge.domain' key. Change EdgeEndpoint from enum to struct to hold endpoint URL as String. Build URL based on type (prod, pre-prod, int) and custom domain.
@kevinlind kevinlind marked this pull request as draft January 8, 2022 00:29
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 8, 2022

Codecov Report

Merging #227 (774e5a9) into dev (498e6a4) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #227      +/-   ##
==========================================
+ Coverage   94.45%   94.51%   +0.06%     
==========================================
  Files          27       27              
  Lines         973      983      +10     
==========================================
+ Hits          919      929      +10     
  Misses         54       54              

@kevinlind kevinlind marked this pull request as ready for review January 8, 2022 01:53
@kevinlind kevinlind requested a review from emdobrin January 8, 2022 01:53
Copy link
Copy Markdown
Contributor

@emdobrin emdobrin left a comment

Choose a reason for hiding this comment

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

Looks good overall 👍 , left few comments below

Copy link
Copy Markdown
Contributor

@emdobrin emdobrin left a comment

Choose a reason for hiding this comment

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

👍

@@ -13,7 +13,7 @@
import Foundation

/// Represents all the known endpoints for the Edge Network
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.

Let's update the comments on this enum since is not directly related to the endpoints. E.g. Represents all the known Edge Network environment types

@kevinlind kevinlind merged commit d85011e into adobe:dev Jan 11, 2022
@kevinlind kevinlind deleted the mob-14959 branch January 11, 2022 20:01
@emdobrin emdobrin added the enhancement New feature or request label Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants