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

TP: by default only show parameter diff when comparing 2 profiles#3963

Merged
ocket8888 merged 6 commits intoapache:masterfrom
mitchell852:profile-diff-2
Oct 15, 2019
Merged

TP: by default only show parameter diff when comparing 2 profiles#3963
ocket8888 merged 6 commits intoapache:masterfrom
mitchell852:profile-diff-2

Conversation

@mitchell852
Copy link
Copy Markdown
Member

@mitchell852 mitchell852 commented Oct 7, 2019

What does this PR (Pull Request) do?

This PR changes the default behavior when comparing the parameters of 2 profiles:

current behavior (#3919 ): ALL parameters (shared and not shared) are displayed.

new behavior: As requested by users, ONLY the parameters that belong to one profile and NOT the other (the diff) are displayed by DEFAULT and the user is given the option to "Show Shared Params" if so desired.

  • This PR is not related to any Issue

Which Traffic Control components are affected by this PR?

  • Traffic Portal

What is the best way to verify this PR?

  • Launch TP
  • Navigate to https://tp.domain.com/#!/profiles
  • Select "Compare Profiles" under the More button
  • Select 2 profiles to compare
  • Ensure none of the "shared" parameters are displayed
  • add or remove parameters from each profile; click "Update"
  • ensure the comparison is updated correctly after confirmation.
  • Navigate to https://tp.domain.com/#!/profiles
  • Select "Compare Profiles" under the More button
  • Select 2 profiles to compare
  • Select 'Show Shared Params'
  • Ensure each profile has the proper parameters "checked". (you can double check by checking the parameters for the profile at https://tp.domain.com/#!/profiles/{profile_id}/parameters)
  • add or remove parameters from each profile; click "Update"
  • ensure the proper parameters are assigned to each profile after confirmation.

The following criteria are ALL met by this PR

@mitchell852 mitchell852 added Traffic Portal v1 related to Traffic Portal version 1 improvement The functionality exists but it could be improved in some way. labels Oct 8, 2019
@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 8, 2019

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

…ameter diff as the default view when comparing profile params
@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 8, 2019

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

@mitchell852 mitchell852 marked this pull request as ready for review October 8, 2019 15:45
@mitchell852 mitchell852 requested a review from ocket8888 October 15, 2019 14:40
@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 15, 2019

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

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 15, 2019

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

@ocket8888
Copy link
Copy Markdown
Contributor

retest this please

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 15, 2019

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

@ocket8888
Copy link
Copy Markdown
Contributor

retest this please

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 15, 2019

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

@ocket8888
Copy link
Copy Markdown
Contributor

retest this please

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 15, 2019

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

@ocket8888
Copy link
Copy Markdown
Contributor

retest this please

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 15, 2019

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

Comment thread traffic_portal/app/src/modules/private/profiles/compare/diff/index.js Outdated
Comment thread traffic_portal/app/src/common/service/utils/LocationUtils.js Outdated
@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 15, 2019

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

@asf-ci
Copy link
Copy Markdown
Contributor

asf-ci commented Oct 15, 2019

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

Copy link
Copy Markdown
Contributor

@ocket8888 ocket8888 left a comment

Choose a reason for hiding this comment

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

Works, tests pass, looks good visually, doesn't use _.js, docs compile and read fine

@ocket8888 ocket8888 merged commit 876784e into apache:master Oct 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

improvement The functionality exists but it could be improved in some way. Traffic Portal v1 related to Traffic Portal version 1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants