Skip to content

Commit

Permalink
revert: remove project webhook assistance feature
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Aug 6, 2021
1 parent 45d3838 commit 3a6c675
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 29 deletions.
1 change: 0 additions & 1 deletion __tests__/test-utils/mock-data/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export const mockProject = {
feedSources: [],
id: 'mock-project-id',
lastUpdated: 1553236399556,
lastUsedPeliasWebhookUrl: null,
labels: [],
name: 'mock-project',
organizationId: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ Object {
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down
4 changes: 2 additions & 2 deletions lib/manager/components/deployment/PeliasPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ class PeliasPanel extends Component<Props, State> {
};

componentDidMount = () => {
const { deployment, project } = this.props
const { deployment } = this.props
this.setState({
// Auto-populate blank field if project has webhook URL in it
peliasWebhookUrl: deployment.peliasWebhookUrl || project.lastUsedPeliasWebhookUrl || ''
peliasWebhookUrl: deployment.peliasWebhookUrl || ''
})
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ exports[`lib > manager > ActiveProjectViewer should render with newly created pr
"id": "mock-project-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -1936,7 +1935,6 @@ exports[`lib > manager > ActiveProjectViewer should render with newly created pr
"id": "mock-project-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -1983,7 +1981,6 @@ exports[`lib > manager > ActiveProjectViewer should render with newly created pr
"id": "mock-project-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -2103,7 +2100,6 @@ exports[`lib > manager > ActiveProjectViewer should render with newly created pr
"id": "mock-project-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -2154,7 +2150,6 @@ exports[`lib > manager > ActiveProjectViewer should render with newly created pr
"id": "mock-project-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -2224,7 +2219,6 @@ exports[`lib > manager > ActiveProjectViewer should render with newly created pr
"id": "mock-project-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -4145,7 +4139,6 @@ exports[`lib > manager > ActiveProjectViewer should render with newly created pr
"id": "mock-project-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -4261,7 +4254,6 @@ exports[`lib > manager > ActiveProjectViewer should render with newly created pr
"id": "mock-project-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -4333,7 +4325,6 @@ exports[`lib > manager > ActiveProjectViewer should render with newly created pr
"id": "mock-project-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project",
"organizationId": null,
"otpServers": Array [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ exports[`lib > manager > DeploymentsPanel should render with the list of deploym
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -465,7 +464,6 @@ exports[`lib > manager > DeploymentsPanel should render with the list of deploym
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -917,7 +915,6 @@ exports[`lib > manager > DeploymentsPanel should render with the list of deploym
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -1424,7 +1421,6 @@ exports[`lib > manager > DeploymentsPanel should render with the list of deploym
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -1836,7 +1832,6 @@ exports[`lib > manager > DeploymentsPanel should render with the list of deploym
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ exports[`lib > manager > FeedSourceTable should render with a project with feeds
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -492,7 +491,6 @@ exports[`lib > manager > FeedSourceTable should render with a project with feeds
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -768,7 +766,6 @@ exports[`lib > manager > FeedSourceTable should render with a project with feeds
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -975,7 +972,6 @@ exports[`lib > manager > FeedSourceTable should render with a project with feeds
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -1202,7 +1198,6 @@ exports[`lib > manager > FeedSourceTable should render with a project with feeds
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -3321,7 +3316,6 @@ exports[`lib > manager > FeedSourceTable should render with a project with feeds
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -3592,7 +3586,6 @@ exports[`lib > manager > FeedSourceTable should render with a project with feeds
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -3918,7 +3911,6 @@ exports[`lib > manager > FeedSourceTable should render with a project with feeds
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -4318,7 +4310,6 @@ exports[`lib > manager > FeedSourceTable should render with a project with feeds
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down Expand Up @@ -4727,7 +4718,6 @@ exports[`lib > manager > FeedSourceTable should render with a project with feeds
"id": "mock-project-with-deployments-id",
"labels": Array [],
"lastUpdated": 1553236399556,
"lastUsedPeliasWebhookUrl": null,
"name": "mock-project-with-deployments",
"organizationId": null,
"otpServers": Array [],
Expand Down
1 change: 0 additions & 1 deletion lib/types/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,6 @@ export type Project = {
isCreating?: boolean,
labels: Array<Label>,
lastUpdated: number | string,
lastUsedPeliasWebhookUrl: ?string,
name: string,
organizationId: ?string,
otpServers?: Array<OtpServer>,
Expand Down

0 comments on commit 3a6c675

Please sign in to comment.