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

EDSC-3773: Some adjustments to the EDSC-3773 merge #1798

Merged
merged 54 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
0eb7d13
EDSC-3773:
bnp26 Jul 17, 2024
88be2fc
Merge branch 'main' of https://github.com/nasa/earthdata-search into …
bnp26 Jul 17, 2024
bcf7ead
removed dangling cammas
bnp26 Jul 17, 2024
cd4600f
Merge branch 'main' into EDSC-3773
bnp26 Jul 17, 2024
cd93a33
EDSC-3773: a bit of cleanup
bnp26 Jul 17, 2024
81621ad
Merge branch 'main' of https://github.com/nasa/earthdata-search into …
bnp26 Jul 17, 2024
43bde25
Merge branch 'EDSC-3773' of https://github.com/nasa/earthdata-search …
bnp26 Jul 17, 2024
c543c69
EDSC-3773: added some code coverage
bnp26 Jul 17, 2024
483ed3f
EDSC-3773: updated documentation and how we run buildAccessMethods.
bnp26 Jul 19, 2024
2338f90
Merge branch 'main' of https://github.com/nasa/earthdata-search into …
bnp26 Jul 19, 2024
d7993e2
EDSC-3773: changed lodash to lodash-es
bnp26 Jul 19, 2024
e9df974
EDSC-3773: fixed the indexing issue and cleaned up some stuff
bnp26 Jul 22, 2024
5c49a41
EDSC-3773: fixed harmony tests
bnp26 Jul 23, 2024
d03175a
Merge branch 'main' into EDSC-3773
bnp26 Jul 23, 2024
8388e9c
Merge branch 'main' into EDSC-3773
bnp26 Jul 23, 2024
b111fab
EDSC-3773: addressed matthew's comments
bnp26 Jul 24, 2024
444015b
Merge branch 'EDSC-3773' of https://github.com/nasa/earthdata-search …
bnp26 Jul 24, 2024
84d7d88
EDSC-3773: added some comments and pushed a small lint fix
bnp26 Jul 25, 2024
62d8a48
EDSC-3773: fixed some eslint issues
bnp26 Jul 25, 2024
898652c
fixed some wording
bnp26 Jul 25, 2024
c37b9fe
Merge branch 'main' into EDSC-3773
bnp26 Jul 29, 2024
62d2014
Merge branch 'main' of https://github.com/nasa/earthdata-search into …
bnp26 Jul 29, 2024
15cd00b
Merge branch 'EDSC-3773' of https://github.com/nasa/earthdata-search …
bnp26 Jul 29, 2024
1ab5025
EDSC-3773: added a test that needs to be finished in buildAccessMethods
bnp26 Jul 29, 2024
080a64e
Merge branch 'main' of https://github.com/nasa/earthdata-search into …
bnp26 Aug 14, 2024
2a5c1b8
Merge branch 'main' into EDSC-3773
bnp26 Aug 16, 2024
737fe81
EDSC-3773: fixed up the format and tests of Harmony, Opendap, and Swo…
bnp26 Aug 19, 2024
3d22271
EDSC-3773: removed console.logs
bnp26 Aug 19, 2024
d26308f
Merge branch 'main' of https://github.com/nasa/earthdata-search into …
bnp26 Aug 19, 2024
3d59e59
Merge branch 'EDSC-3773' of https://github.com/nasa/earthdata-search …
bnp26 Aug 19, 2024
56a5e74
Merge branch 'main' of https://github.com/nasa/earthdata-search into …
bnp26 Aug 19, 2024
feab563
Merge branch 'main' of https://github.com/nasa/earthdata-search into …
bnp26 Aug 22, 2024
7f99a33
Merge branch 'main' into EDSC-3773
bnp26 Aug 26, 2024
49755c1
Merge branch 'main' of https://github.com/nasa/earthdata-search into …
bnp26 Aug 27, 2024
afe3ca8
EDSC-3773: fixed up syntax/linting so it matches our standards
bnp26 Aug 27, 2024
ef0ce8a
Merge branch 'EDSC-3773' of https://github.com/nasa/earthdata-search …
bnp26 Aug 27, 2024
9ee253d
EDSC-3773: forgot a couple of the lint changes
bnp26 Aug 27, 2024
11975a8
adding test and seeing weirdness
bnp26 Aug 29, 2024
552c806
Merge branch 'main' of https://github.com/nasa/earthdata-search into …
bnp26 Aug 29, 2024
5f8a29e
fixed up the test
bnp26 Aug 29, 2024
fa630bf
EDSC-3773: merged new test and removed console.logs and fixed the ord…
bnp26 Aug 29, 2024
86f8236
EDSC-3773: split ESI and ECHO ORDERS and updated the way we build the…
bnp26 Sep 3, 2024
e6c8747
Merge branch 'main' of https://github.com/nasa/earthdata-search into …
bnp26 Sep 3, 2024
5b6388a
small linter fix
bnp26 Sep 3, 2024
a5084cd
EDSC-3773: addressed some issues brought up by Trevor and added some …
bnp26 Sep 5, 2024
db988d2
Merge branch 'main' of https://github.com/nasa/earthdata-search into …
bnp26 Sep 5, 2024
fd8a97e
Merge branch 'main' into EDSC-3773
bnp26 Sep 5, 2024
745a2a2
EDSC-3773: added this check to account for serviceItems = null
bnp26 Sep 6, 2024
1a9e503
Merge branch 'EDSC-3773' of https://github.com/nasa/earthdata-search …
bnp26 Sep 6, 2024
7ed72f8
EDSC-3773: fixed some tests that had items: null and updated buildAcc…
bnp26 Sep 9, 2024
7c4cdb0
EDSC-3773: added a check such that we don't push setDataQualitySummar…
bnp26 Sep 9, 2024
b75f71c
EDSC-3773: fixed up the tests to match the expected results
bnp26 Sep 9, 2024
c9d2e7d
forgot to remove a console.log
bnp26 Sep 9, 2024
06c41db
EDSC-3773: Added one last test to cover the default switch statement
bnp26 Sep 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions static/src/js/actions/__tests__/focusedCollection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ describe('getFocusedCollection', () => {
'org.ceos.wgiss.cwic.granules.prod': {}
},
tools: {
items: null
items: []
}
}
}
Expand Down Expand Up @@ -286,7 +286,7 @@ describe('getFocusedCollection', () => {
'org.ceos.wgiss.cwic.granules.prod': {}
},
tools: {
items: null
items: []
}
}
}
Expand Down Expand Up @@ -370,7 +370,7 @@ describe('getFocusedCollection', () => {
}
},
tools: {
items: null
items: []
}
}
}
Expand Down Expand Up @@ -524,7 +524,7 @@ describe('getFocusedCollection', () => {
}
],
tools: {
items: null
items: []
}
}
}
Expand Down
100 changes: 75 additions & 25 deletions static/src/js/actions/__tests__/project.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,24 +287,24 @@ describe('getProjectCollections', () => {
}]
},
services: {
items: null
items: []
},
dataQualitySummaries:
{
items: null
items: []
}
},
{
conceptId: 'collectionId2',
tools: {
items: null
items: []
},
services: {
items: null
items: []
},
dataQualitySummaries:
{
items: null
items: []
}
}]
}
Expand Down Expand Up @@ -350,7 +350,8 @@ describe('getProjectCollections', () => {

const storeActions = store.getActions()

expect(storeActions.length).toEqual(4)
expect(storeActions.length).toEqual(6)

expect(storeActions[0]).toEqual({
type: ADD_ACCESS_METHODS,
payload: {
Expand All @@ -360,6 +361,14 @@ describe('getProjectCollections', () => {
})

expect(storeActions[1]).toEqual({
type: SET_DATA_QUALITY_SUMMARIES,
payload: {
catalogItemId: 'collectionId1',
dataQualitySummaries: []
}
})

expect(storeActions[2]).toEqual({
type: UPDATE_COLLECTION_METADATA,
payload: [
expect.objectContaining({
Expand All @@ -371,15 +380,23 @@ describe('getProjectCollections', () => {
]
})

expect(storeActions[2]).toEqual({
expect(storeActions[3]).toEqual({
type: ADD_ACCESS_METHODS,
payload: {
collectionId: 'collectionId2',
methods: {}
}
})

expect(storeActions[3]).toEqual({
expect(storeActions[4]).toEqual({
type: SET_DATA_QUALITY_SUMMARIES,
payload: {
catalogItemId: 'collectionId2',
dataQualitySummaries: []
}
})

expect(storeActions[5]).toEqual({
type: UPDATE_COLLECTION_METADATA,
payload: [
expect.objectContaining({
Expand Down Expand Up @@ -609,24 +626,24 @@ describe('getProjectCollections', () => {
}]
},
services: {
items: null
items: []
},
dataQualitySummaries:
{
items: null
items: []
}
},
{
conceptId: 'collectionId2',
tools: {
items: null
items: []
},
services: {
items: null
items: []
},
dataQualitySummaries:
{
items: null
items: []
}
}]
}
Expand Down Expand Up @@ -674,7 +691,8 @@ describe('getProjectCollections', () => {

const storeActions = store.getActions()

expect(storeActions.length).toEqual(5)
expect(storeActions.length).toEqual(7)

expect(storeActions[0]).toEqual({
type: ADD_ERROR,
payload: expect.objectContaining({
Expand All @@ -693,6 +711,14 @@ describe('getProjectCollections', () => {
})

expect(storeActions[2]).toEqual({
type: SET_DATA_QUALITY_SUMMARIES,
payload: {
catalogItemId: 'collectionId1',
dataQualitySummaries: []
}
})

expect(storeActions[3]).toEqual({
type: UPDATE_COLLECTION_METADATA,
payload: [
expect.objectContaining({
Expand All @@ -704,15 +730,23 @@ describe('getProjectCollections', () => {
]
})

expect(storeActions[3]).toEqual({
expect(storeActions[4]).toEqual({
type: ADD_ACCESS_METHODS,
payload: {
collectionId: 'collectionId2',
methods: {}
}
})

expect(storeActions[4]).toEqual({
expect(storeActions[5]).toEqual({
type: SET_DATA_QUALITY_SUMMARIES,
payload: {
catalogItemId: 'collectionId2',
dataQualitySummaries: []
}
})

expect(storeActions[6]).toEqual({
type: UPDATE_COLLECTION_METADATA,
payload: [
expect.objectContaining({
Expand Down Expand Up @@ -750,26 +784,26 @@ describe('getProjectCollections', () => {
],
dataQualitySummaries:
{
items: null
items: []
},
tools: {
items: null
items: []
},
services: {
items: null
items: []
}
},
{
conceptId: 'collectionId2',
tools: {
items: null
items: []
},
dataQualitySummaries:
{
items: null
items: []
},
services: {
items: null
items: []
}
}]
}
Expand Down Expand Up @@ -815,7 +849,7 @@ describe('getProjectCollections', () => {

const storeActions = store.getActions()

expect(storeActions.length).toEqual(4)
expect(storeActions.length).toEqual(6)

expect(storeActions[0]).toEqual({
type: ADD_ACCESS_METHODS,
Expand All @@ -826,6 +860,14 @@ describe('getProjectCollections', () => {
})

expect(storeActions[1]).toEqual({
type: SET_DATA_QUALITY_SUMMARIES,
payload: {
catalogItemId: 'collectionId1',
dataQualitySummaries: []
}
})

expect(storeActions[2]).toEqual({
type: UPDATE_COLLECTION_METADATA,
payload: [
expect.objectContaining({
Expand All @@ -837,15 +879,23 @@ describe('getProjectCollections', () => {
]
})

expect(storeActions[2]).toEqual({
expect(storeActions[3]).toEqual({
type: ADD_ACCESS_METHODS,
payload: {
collectionId: 'collectionId2',
methods: {}
}
})

expect(storeActions[3]).toEqual({
expect(storeActions[4]).toEqual({
type: 'SET_DATA_QUALITY_SUMMARIES',
payload: {
catalogItemId: 'collectionId2',
dataQualitySummaries: []
}
})

expect(storeActions[5]).toEqual({
type: UPDATE_COLLECTION_METADATA,
payload: [
expect.objectContaining({
Expand Down
4 changes: 2 additions & 2 deletions static/src/js/components/Map/__tests__/mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ export const updateProps = {
isOpenSearch: false,
services: {
count: 0,
items: null
items: []
},
shortName: 'MOD13Q1',
tags: {
Expand Down Expand Up @@ -983,7 +983,7 @@ export const updateProps = {
title: 'MODIS/Terra Vegetation Indices 16-Day L3 Global 250m SIN Grid V006',
variables: {
count: 0,
items: null
items: []
},
versionId: '006',
gibsLayers: 'Geographic',
Expand Down
5 changes: 5 additions & 0 deletions static/src/js/constants/accessMethodTypes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const ECHO_ORDERS = 'echoOrders'
export const ESI = 'esi'
export const OPENDAP = 'opendap'
export const HARMONY = 'harmony'
export const SWODLR = 'swodlr'
Loading
Loading