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

Support queueing updates by type and profile#6014

Merged
rawlinp merged 12 commits intoapache:masterfrom
srijeet0406:CDN-13414
Jul 19, 2021
Merged

Support queueing updates by type and profile#6014
rawlinp merged 12 commits intoapache:masterfrom
srijeet0406:CDN-13414

Conversation

@srijeet0406
Copy link
Copy Markdown
Contributor

@srijeet0406 srijeet0406 commented Jul 12, 2021

What does this PR (Pull Request) do?

Which Traffic Control components are affected by this PR?

  • Documentation
  • Traffic Ops
  • CI tests

What is the best way to verify this PR?

Make sure all the API/ unit tests pass.
Manual testing:
Run TO and TP locally.
Go to TP and click on a TYPE that is used in the server table, for example, EDGE.
Under the More dropdown button, you should be able to queue updates for this particular type and any CDN.
Do a similar test for profiles.

If this is a bug fix, what versions of Traffic Control are affected?

  • master

The following criteria are ALL met by this PR

  • This PR includes tests
  • This PR includes documentation
  • This PR includes an update to CHANGELOG.md
  • This PR includes any and all required license headers
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Additional Information

Comment thread traffic_ops/traffic_ops_golang/routing/routes.go Outdated
@rawlinp rawlinp added new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops labels Jul 12, 2021
Comment thread traffic_ops/v4-client/server_update_status.go Outdated
Comment thread traffic_ops/traffic_ops_golang/cdn/queue.go Outdated
Comment thread lib/go-tc/servers.go Outdated
Comment thread traffic_portal/app/src/common/modules/form/type/form.type.tpl.html Outdated
Comment thread traffic_ops/traffic_ops_golang/cdn/queue.go
Comment thread docs/source/api/v4/cdns_id_queue_update.rst Outdated
Copy link
Copy Markdown
Contributor

@rawlinp rawlinp left a comment

Choose a reason for hiding this comment

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

Code and tests look good, just noticed a small UI issue.

EDIT: there is also a merge conflict in CHANGELOG.md that needs to be resolved

Comment thread traffic_portal/app/src/common/modules/form/type/form.type.tpl.html Outdated
@rawlinp rawlinp added the Traffic Portal v1 related to Traffic Portal version 1 label Jul 19, 2021
@rawlinp
Copy link
Copy Markdown
Contributor

rawlinp commented Jul 19, 2021

These TP test failures might be related to this PR:

Failures:
1) Traffic Portal - CDN - Admin Role queue CDN updates
  Message:
    Expected false to be truthy.
  Stack:
    Error: Failed expectation
        at Suite.<anonymous> (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/specs/CDNs.spec.ts:57:62)
        at Generator.next (<anonymous>)
        at fulfilled (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/GeneratedCode/specs/CDNs.spec.js:5:58)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

2) Traffic Portal - CDN - Admin Role clear CDN updates
  Message:
    Expected false to be truthy.
  Stack:
    Error: Failed expectation
        at Suite.<anonymous> (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/specs/CDNs.spec.ts:57:62)
        at Generator.next (<anonymous>)
        at fulfilled (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/GeneratedCode/specs/CDNs.spec.js:5:58)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

3) Traffic Portal - CDN - Operation Role queue CDN updates
  Message:
    Expected false to be truthy.
  Stack:
    Error: Failed expectation
        at Suite.<anonymous> (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/specs/CDNs.spec.ts:57:62)
        at Generator.next (<anonymous>)
        at fulfilled (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/GeneratedCode/specs/CDNs.spec.js:5:58)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

4) Traffic Portal - CDN - Operation Role clear CDN updates
  Message:
    Expected false to be truthy.
  Stack:
    Error: Failed expectation
        at Suite.<anonymous> (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/specs/CDNs.spec.ts:57:62)
        at Generator.next (<anonymous>)
        at fulfilled (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/GeneratedCode/specs/CDNs.spec.js:5:58)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

490 specs, 4 failures

@srijeet0406
Copy link
Copy Markdown
Contributor Author

These TP test failures might be related to this PR:

Failures:
1) Traffic Portal - CDN - Admin Role queue CDN updates
  Message:
    Expected false to be truthy.
  Stack:
    Error: Failed expectation
        at Suite.<anonymous> (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/specs/CDNs.spec.ts:57:62)
        at Generator.next (<anonymous>)
        at fulfilled (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/GeneratedCode/specs/CDNs.spec.js:5:58)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

2) Traffic Portal - CDN - Admin Role clear CDN updates
  Message:
    Expected false to be truthy.
  Stack:
    Error: Failed expectation
        at Suite.<anonymous> (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/specs/CDNs.spec.ts:57:62)
        at Generator.next (<anonymous>)
        at fulfilled (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/GeneratedCode/specs/CDNs.spec.js:5:58)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

3) Traffic Portal - CDN - Operation Role queue CDN updates
  Message:
    Expected false to be truthy.
  Stack:
    Error: Failed expectation
        at Suite.<anonymous> (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/specs/CDNs.spec.ts:57:62)
        at Generator.next (<anonymous>)
        at fulfilled (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/GeneratedCode/specs/CDNs.spec.js:5:58)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

4) Traffic Portal - CDN - Operation Role clear CDN updates
  Message:
    Expected false to be truthy.
  Stack:
    Error: Failed expectation
        at Suite.<anonymous> (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/specs/CDNs.spec.ts:57:62)
        at Generator.next (<anonymous>)
        at fulfilled (/home/runner/go/src/github.com/apache/trafficcontrol/traffic_portal/test/integration/GeneratedCode/specs/CDNs.spec.js:5:58)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

490 specs, 4 failures

Fixed now

@rawlinp rawlinp merged commit 8523a6e into apache:master Jul 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

new feature A new feature, capability or behavior Traffic Ops related to Traffic Ops Traffic Portal v1 related to Traffic Portal version 1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Queuing Updates by Server Type Add the ability to queue updates for all servers of a given profile

2 participants