Skip to content

Commit

Permalink
Bug/WP-24: Disabling Google Drive Integration (#988)
Browse files Browse the repository at this point in the history
* disabling google drive integration and test assertions

* Test for No Integrations Available

* added test for other 3rd party apps other than google drive

* Update client/src/components/DataFiles/DataFilesListing/DataFilesListingCells.jsx

Co-authored-by: fnets <[email protected]>

* Update client/src/components/DataFiles/fixtures/DataFiles.systems.fixture.js

Co-authored-by: fnets <[email protected]>

* copy modal filter google drive

* Revert changes in opt for settings_custom.py

* settings_default drive removal

* test revision keep additional 3rd party test

* rm vite config push

* getByText and custom example revert

---------

Co-authored-by: fnets <[email protected]>
Co-authored-by: Garrett Edmonds <[email protected]>
  • Loading branch information
3 people authored Nov 18, 2024
1 parent fddcc8f commit f44a829
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,33 @@ describe('Third Party Apps', () => {
expect(getByText('Google Drive')).toBeDefined();
expect(getByText('Disconnect')).toBeDefined();
});
it('Shows potential 3rd party connections other than Google Drive', () => {
const testStore = mockStore({
profile: {
...dummyState,
data: {
...dummyState.data,
integrations: [
{
label: '3rd Party Service',
description: '3rd Party Service description',
activated: true,
},
],
},
},
});
const { getByText, queryByText } = render(
<Provider store={testStore}>
<Integrations />
</Provider>
);
expect(getByText(/3rd Party Apps/)).toBeInTheDocument();
// Check that Google Drive is not rendered
expect(queryByText('Google Drive')).toBeNull();
// Check that other integrations are rendered
expect(getByText('3rd Party Service')).toBeInTheDocument();
});
});

describe('License Cell', () => {
Expand Down
8 changes: 0 additions & 8 deletions server/portal/settings/settings_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,6 @@
'readOnly': False,
'hideSearchBar': False
},
{
'name': 'Google Drive',
'system': 'googledrive',
'scheme': 'private',
'api': 'googledrive',
'icon': None,
'integration': 'portal.apps.googledrive_integration'
}
]

########################
Expand Down

0 comments on commit f44a829

Please sign in to comment.