Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add auto approval flow for servicenow plugin #33885

Merged
merged 19 commits into from
Nov 11, 2023

Conversation

EdwardDowling
Copy link
Contributor

@EdwardDowling EdwardDowling commented Oct 24, 2023

Adds auto approval flow to servicenow so users with roles that have a 'schedule' annotation set will be checked to see if they are on-call in the specified rota.

PR adds the functionality to the servicenow plugin's implementation of 'app', the pr to actually use the use custom app is here

changelog: Add auto approval flow to servicenow plugin

@EdwardDowling EdwardDowling changed the title Edwarddowling/auto approval Add auto approval flow for servicenow plugin Oct 24, 2023
@EdwardDowling EdwardDowling marked this pull request as ready for review October 25, 2023 15:41
@github-actions
Copy link

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

@github-actions
Copy link

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

integrations/access/servicenow/app.go Outdated Show resolved Hide resolved
integrations/access/servicenow/types.go Outdated Show resolved Hide resolved
integrations/access/servicenow/app.go Outdated Show resolved Hide resolved
integrations/access/servicenow/app.go Outdated Show resolved Hide resolved
integrations/access/servicenow/app.go Outdated Show resolved Hide resolved
integrations/access/servicenow/app.go Outdated Show resolved Hide resolved
integrations/access/servicenow/app.go Outdated Show resolved Hide resolved
@EdwardDowling EdwardDowling force-pushed the edwarddowling/auto-approval branch from 3da88da to 8c87ccd Compare November 2, 2023 15:29
Copy link

github-actions bot commented Nov 2, 2023

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

3 similar comments
Copy link

github-actions bot commented Nov 2, 2023

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

Copy link

github-actions bot commented Nov 2, 2023

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

Copy link

github-actions bot commented Nov 2, 2023

The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with changelog: followed by the changelog entries for the PR.

integrations/access/servicenow/app.go Outdated Show resolved Hide resolved
integrations/access/servicenow/app.go Outdated Show resolved Hide resolved
integrations/access/servicenow/config.go Outdated Show resolved Hide resolved
@EdwardDowling
Copy link
Contributor Author

@hugoShaka Can you take another look at this when you get a chance?

integrations/access/servicenow/app.go Outdated Show resolved Hide resolved
@EdwardDowling EdwardDowling added this pull request to the merge queue Nov 10, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 10, 2023
@EdwardDowling EdwardDowling added this pull request to the merge queue Nov 10, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 10, 2023
@EdwardDowling EdwardDowling added this pull request to the merge queue Nov 10, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 10, 2023
@EdwardDowling EdwardDowling added this pull request to the merge queue Nov 11, 2023
Merged via the queue into master with commit fa5c373 Nov 11, 2023
32 checks passed
@EdwardDowling EdwardDowling deleted the edwarddowling/auto-approval branch November 11, 2023 02:08
@public-teleport-github-review-bot

@EdwardDowling See the table below for backport results.

Branch Result
branch/v14 Failed

EdwardDowling added a commit that referenced this pull request Dec 12, 2023
* Add initial servicenow auto approval

* Stop servicenow healthcheck exiting early

* Update servicenow plugin tests to handle auto approval flow

* Add comment clarifying choice of identifier for servicenow plugin

* Fix healthcheck error handling in servicenow plugin

* Fix formatting errors

* Add more context to logs

* Fix logging in servicenow plugin

* Update integrations/access/servicenow/config.go

Co-authored-by: Marco André Dinis <[email protected]>

* Remove supurfluous reqId in log

* Remove unused sentinal error

* Fix imports

* Remove unused field

* Fix formating

* Change servicenow plugin to always post review updates

* Refactor servicenow plugin auto approval flow

* Update integrations/access/servicenow/app.go

Co-authored-by: Hugo Shaka <[email protected]>

* Add mock for healthcheck endpoint

* Add missing check to skip test in OSS version

---------

Co-authored-by: Marco André Dinis <[email protected]>
Co-authored-by: Hugo Shaka <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Dec 13, 2023
* Add initial servicenow auto approval

* Stop servicenow healthcheck exiting early

* Update servicenow plugin tests to handle auto approval flow

* Add comment clarifying choice of identifier for servicenow plugin

* Fix healthcheck error handling in servicenow plugin

* Fix formatting errors

* Add more context to logs

* Fix logging in servicenow plugin

* Update integrations/access/servicenow/config.go



* Remove supurfluous reqId in log

* Remove unused sentinal error

* Fix imports

* Remove unused field

* Fix formating

* Change servicenow plugin to always post review updates

* Refactor servicenow plugin auto approval flow

* Update integrations/access/servicenow/app.go



* Add mock for healthcheck endpoint

* Add missing check to skip test in OSS version

---------

Co-authored-by: Marco André Dinis <[email protected]>
Co-authored-by: Hugo Shaka <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants