Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Fix delivery service validation#2451

Merged
dewrich merged 2 commits intoapache:masterfrom
rawlinp:fix-ds-validation
Jun 25, 2018
Merged

Fix delivery service validation#2451
dewrich merged 2 commits intoapache:masterfrom
rawlinp:fix-ds-validation

Conversation

@rawlinp
Copy link
Copy Markdown
Contributor

@rawlinp rawlinp commented Jun 21, 2018

Add the rest of the validation done by the Perl API that the Go API is
missing.

Fixes #2373

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.

Mind adding a Godoc function comment here, explaining the return params? That way someone doesn't have to read the function to figure out what each string being returned is.

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.

done

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.

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.

am confused, this function is there

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.

sorry I didn't notice the package changed from above, ignore my previous comment

@rawlinp rawlinp force-pushed the fix-ds-validation branch from d4e047b to 488a59b Compare June 21, 2018 21:54
@rawlinp
Copy link
Copy Markdown
Contributor Author

rawlinp commented Jun 21, 2018

hold up, this makes initialDispersion required...fixing

@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jun 21, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/1882/
Test PASSed.

Add the rest of the validation done by the Perl API that the Go API is
missing.

Fixes apache#2373
@rawlinp rawlinp force-pushed the fix-ds-validation branch from 488a59b to 79af219 Compare June 21, 2018 22:10
@rawlinp
Copy link
Copy Markdown
Contributor Author

rawlinp commented Jun 21, 2018

ok, fixed it so initialDispersion has to be greater than zero if it's not nil.

@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jun 22, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/1884/
Test PASSed.

@mitchell852 mitchell852 added Traffic Ops API (golang) bug something isn't working as intended regression bug a bug in existing functionality introduced by a new version labels Jun 22, 2018
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Jun 25, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/1909/
Test PASSed.

@dewrich dewrich merged commit e8463e8 into apache:master Jun 25, 2018
@rawlinp rawlinp deleted the fix-ds-validation branch June 25, 2018 18:22
@mitchell852 mitchell852 removed the bug something isn't working as intended label Aug 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

regression bug a bug in existing functionality introduced by a new version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing validation in Golang Delivery Service API

5 participants