Skip to content

Feature: Inbound endpoints support#993

Merged
johnnyzhang82 merged 22 commits into
masterfrom
feature/inbountNATPools
Jan 2, 2018
Merged

Feature: Inbound endpoints support#993
johnnyzhang82 merged 22 commits into
masterfrom
feature/inbountNATPools

Conversation

@johnnyzhang82
Copy link
Copy Markdown
Contributor

@johnnyzhang82 johnnyzhang82 commented Dec 21, 2017

fix #965
-added pool endpoint configuration in create pool form
-fixed a bug in job container setting validators not being reset

nat2
nat3
nat0
nat1

… component, html and related module declaration.
-added validation checks whether checking front end port range overlap or not
-added validation checks name/backendPort uniqueness
- added network security rules validation
- added endpoint name regex validation
- added validation of security group rules with maximum number 25
…lude itself in edit mode

- updated some comment and added inboundNatPool property in creat pool model
-added a missing validation for network security group rules (compare priority with others)
@timotheeguerin timotheeguerin changed the title Feature/inbount nat pools Feature: Inbound nat pools support Dec 21, 2017
@timotheeguerin timotheeguerin changed the title Feature: Inbound nat pools support Feature: Inbound endpoints support Dec 21, 2017
@@ -9,5 +9,8 @@ export class EditableTableColumnComponent {

@Input() public type: string = "text";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you make this type to be an enum(with string values)

@Input() public type: string = "text";

/** Select options when type is 'select' */
@Input() public select: string[];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would call that options maybe


public validate(c: FormControl) {
const valid = this.form.valid;
if (!valid) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if(valid) {return null;}?

@Input() public inboundNATPools: InboundNATPool[];

public InboundEndpointProtocol = InboundEndpointProtocol;
public minPort = EndpointHelper.MININUM_PORT;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can't you just pass the EndpointHelper here instead of all those values, also I feel like we don't really name our constant ALL_CAPS so not sure if we should keep it like that

-fixed a bug in create job container setting validator not reset if switching from container pool to a non-container pool
return row;
}

public trackIndex(index, row: any) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

here actually you could try by the item as it's an option of type string. should be more efficient(Though doesn't really matter here as its small list that doesn't get updated)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will use trackRows which is already defined above.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 22, 2017

Codecov Report

Merging #993 into master will increase coverage by 0.02%.
The diff coverage is 63.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #993      +/-   ##
==========================================
+ Coverage    54.5%   54.53%   +0.02%     
==========================================
  Files         749      751       +2     
  Lines       17738    17799      +61     
  Branches     2008     2021      +13     
==========================================
+ Hits         9668     9706      +38     
- Misses       8070     8093      +23
Impacted Files Coverage Δ
app/models/dtos/pool-create.dto.ts 100% <ø> (ø) ⬆️
app/models/dtos/index.ts 100% <ø> (ø) ⬆️
app/models/forms/create-pool-model.ts 20.58% <0%> (-2.75%) ⬇️
...nents/pool/details/pool-configuration.component.ts 33.33% <0%> (-2.57%) ⬇️
...l/action/add/pool-create-basic-dialog.component.ts 14.94% <0%> (-0.73%) ⬇️
...se/form/editable-table/editable-table.component.ts 98.33% <100%> (+0.02%) ⬆️
app/models/pool-endpoint-configuration.ts 100% <100%> (ø)
.../editable-table/editable-table-column.component.ts 100% <100%> (ø) ⬆️
app/models/index.ts 100% <100%> (ø) ⬆️
app/models/network-configuration.ts 100% <100%> (ø) ⬆️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3048a4...2e6464f. Read the comment docs.

@johnnyzhang82 johnnyzhang82 merged commit 033fee6 into master Jan 2, 2018
@timotheeguerin timotheeguerin deleted the feature/inbountNATPools branch January 2, 2018 21:07
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.

Support for inbound endpoints

2 participants