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

Deployment v2.0.0 UAT and PROD #173

Merged
merged 69 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
dfbe0b2
Merge pull request #154 from NIH-NCPI/bg/gh_action_uat_bug
brendagutman Dec 10, 2024
0612179
FD-1844: UCUM Codes for Units
yelenacox Dec 12, 2024
7cc6c19
Merge pull request #155 from NIH-NCPI/yc/FD-1844
yelenacox Dec 13, 2024
ebe3223
Removed credentials from headers causing CORS error
yelenacox Dec 13, 2024
863696a
Merge pull request #156 from NIH-NCPI/cors-bug
yelenacox Dec 13, 2024
7804312
[FD-1869] test dispatch deploy version
brendagutman Dec 13, 2024
c3d9b7f
[FD-1869] test dev version
brendagutman Dec 13, 2024
ff69152
FD-1845: Update Help Page
yelenacox Dec 13, 2024
14797be
add workflow dispatch to dev
brendagutman Dec 13, 2024
16d3cdd
test dev version
brendagutman Dec 13, 2024
6f56c28
[FD-1869]Edit qa and prod version
brendagutman Dec 13, 2024
2f10721
Merge pull request #157 from NIH-NCPI/bg/fd_1869
brendagutman Dec 13, 2024
9ab2fb0
Added line between onboarding slides and caption
yelenacox Dec 13, 2024
db214a4
Committing to change branches
yelenacox Dec 13, 2024
94e5bad
committing to merge
yelenacox Dec 13, 2024
f30488d
Merge pull request #158 from NIH-NCPI/yc/FD-1845
yelenacox Dec 16, 2024
299401f
committing to change branches
yelenacox Dec 16, 2024
7611fc1
Merge branch 'main' of https://github.com/NIH-NCPI/map-dragon
yelenacox Dec 16, 2024
4df7e89
Merge branch 'main' into yc/FD-1802
yelenacox Dec 16, 2024
d28e02a
Adding ontology filters to AssignMappingsCheckboxes
yelenacox Dec 16, 2024
3b8a863
Ontology filters for search w/ preferred terminologies
yelenacox Dec 17, 2024
d7e6550
Added transition to active/inactive terminologies change
yelenacox Dec 17, 2024
ca6c52e
Added null check to systemsMatch function
yelenacox Dec 17, 2024
52e7515
Merge pull request #159 from NIH-NCPI/yc/FD-1802
yelenacox Dec 17, 2024
4288769
[FD-1831] Update deployments to use env SERVICE
brendagutman Dec 27, 2024
e63d6d9
[FD-1831] Edit qa trigger
brendagutman Dec 27, 2024
b3353eb
[FD-1831] Ensure version
brendagutman Dec 27, 2024
e1ef32d
[FD-1831] Clean PR
brendagutman Dec 27, 2024
2b4a6e2
Combined OntologyFilterCodeSubmit into one function
yelenacox Dec 30, 2024
45a3bcc
committing to switch branches
yelenacox Dec 30, 2024
c83ee62
[FD-1831] Add kf to package.json
brendagutman Dec 30, 2024
3f29e5a
Using locutus search and displaying results
yelenacox Dec 31, 2024
d7eb950
First pass at filtering results by selected ontologies
yelenacox Dec 31, 2024
f06f73e
Merge pull request #162 from NIH-NCPI/bg/fd_1831
brendagutman Jan 2, 2025
7f74a8d
committing to switch branches
yelenacox Jan 3, 2025
7840402
Using Locutus search api with ontologies in all caps
yelenacox Jan 3, 2025
a9a30b3
Locutus search in general search page
yelenacox Jan 3, 2025
48c802a
Bug fix for 404 error when resetting Terminology filters
yelenacox Jan 6, 2025
195b74d
Merge pull request #164 from NIH-NCPI/yc/404-filter-reset
yelenacox Jan 6, 2025
f385942
Merge branch 'main' into yc/FD-1892
yelenacox Jan 6, 2025
c57213a
View More pagination for locutus search
yelenacox Jan 7, 2025
a2a1779
Cleanup for adding locutus search for ontologies
yelenacox Jan 8, 2025
65b8756
Selections sent to API after changing ontology filters
yelenacox Jan 8, 2025
ef95b2b
Merge pull request #167 from NIH-NCPI/yc/FD-1892
yelenacox Jan 8, 2025
9188418
Starting work on selecting ontology filters for multiple APIs
yelenacox Jan 15, 2025
d1e49c4
Existing ontology filters checked by default
yelenacox Jan 15, 2025
66f6573
First pass at sending ontology filters to backend w/ multiple apis
yelenacox Jan 16, 2025
9b67dff
Committing to switch branches
yelenacox Jan 17, 2025
692b6a0
Ontology filters w/ multiple APIs for Tables and Terminologies
yelenacox Jan 17, 2025
f046702
Added radio buttons, displaying ontologies on radio button click
yelenacox Jan 21, 2025
e84c742
Working on updating the search when selecting different api
yelenacox Jan 21, 2025
54a7ec7
Changed radioApi to selectedApi
yelenacox Jan 22, 2025
100d3a9
Search working when changing APIs
yelenacox Jan 22, 2025
7b3d1cd
committing to switch branches
yelenacox Jan 22, 2025
5fd02ef
All APIs showing as options, regardless of saved preferences
yelenacox Jan 22, 2025
98b3c3f
OLS used by default when no filters are set
yelenacox Jan 22, 2025
26699eb
Loading results spinner css updates
yelenacox Jan 23, 2025
bde0bfa
Merge pull request #169 from NIH-NCPI/yc/fd-1907
yelenacox Jan 23, 2025
e9b6eb0
Multiple api filters w/ preferred terminologies
yelenacox Jan 23, 2025
582f59c
Merge branch 'main' into yc/fd-1893
yelenacox Jan 23, 2025
076bbc3
Sorting selected ontologies to top of checklist
yelenacox Jan 23, 2025
dc33b87
If ontology preferences are empty, sets default ontologies to the pre…
yelenacox Jan 23, 2025
ff414b5
Adding api properties if the api preference is empty
yelenacox Jan 24, 2025
caaa660
Merge pull request #170 from NIH-NCPI/yc/fd-1893
yelenacox Jan 24, 2025
ae8a112
committing to switch branches
yelenacox Jan 24, 2025
9a179b1
Merge pull request #171 from NIH-NCPI/yc/fd-1904
yelenacox Jan 24, 2025
2bd7aaf
v2.0.0 deployment
brendagutman Jan 24, 2025
c2e6433
Merge branch 'deployment_v2.0.0' into release
brendagutman Jan 24, 2025
5a5f247
Merge branch 'deployment_v2.0.0'
brendagutman Jan 24, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ jobs:
service: '${{ env.SERVICE }}'
region: '${{ env.REGION }}'
image: "${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.IMAGE_NAME }}:${{ github.sha }}"
env_vars: VERSION=${VERSION}
env_vars: VERSION=${VERSION}
2 changes: 1 addition & 1 deletion .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ jobs:
service: '${{ env.SERVICE }}'
region: '${{ env.REGION }}'
image: "${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.IMAGE_NAME }}:${{ github.sha }}"
env_vars: VERSION=${VERSION}
env_vars: VERSION=${VERSION}
2 changes: 1 addition & 1 deletion .github/workflows/deploy_qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ jobs:
service: '${{ env.SERVICE }}'
region: '${{ env.REGION }}'
image: "${{ env.REGION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.IMAGE_NAME }}:${{ github.sha }}"
env_vars: VERSION=${VERSION}
env_vars: VERSION=${VERSION}
2 changes: 1 addition & 1 deletion .github/workflows/dispatch_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ jobs:
service: ${{ env.SERVICE }}
region: '${{ env.REGION }}'
image: ${{ env.DOCKER_TAG }}
env_vars: ${{ github.event.inputs.version }}
env_vars: ${{ github.event.inputs.version }}
44 changes: 6 additions & 38 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,13 @@
# Map Dragon
This application will support several user groups in submitting and validating their data, managing and tracking data definitions, and aligning data to standardized terms.

## Getting Started
### Vite React App
Map Dragon is a tool for data mappers that enables users to import and store data dictionaries, search and map across multiple ontologies simultaneously, and export mapped data. This will standardize terminology for improved use in the AnVIL Data Explorer, and improve cross-platform querying.

This is a React application bootstrapped with Vite.
MapDragon operates on GCP and has been tested for use in Chrome and Microsoft Edge. We do not recommend using MapDragon on other browsers.

### Prerequisites
## Resources

Make sure you have Node.js and npm installed on your machine.

### Installation

1. Clone the repository:

```sh
git clone [email protected]:NIH-NCPI/map-dragon.git

2. Navigate into the project directory:

```sh
cd map-dragon
3. Install dependencies

```sh
npm i

### Development
1. To start the development server, run:
```sh
npm run dev

### Dependencies
This project utilizes the following dependencies:

+ React: A JavaScript library for building user interfaces
+ Vite: A front-end tooling for web development
+ Ant Design: A design component library
+ Sass: A CSS preprocessor
+ React OAuth2 | Google: A React library for Google OAuth
+ jwt-decode: A JWT decoder
+ Papa Parse: A CSV parser
- [User Guide](https://docs.google.com/document/d/1nzJacOXqxbY-7EuynXdsvPCGp0tmkc_rm2x56T97PXY/edit?usp=sharing)

- [Onboarding Slides](https://docs.google.com/presentation/d/1Hm1ZXmNlhaHlJ0LIb9WlZ4sH2CTpOJQw94K0_Ul-W40/edit?usp=sharing)

These slides have been used to provide an overview to groups utilizing Map Dragon for their mapping needs.
8 changes: 4 additions & 4 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { GoogleOAuthProvider } from '@react-oauth/google';
export const myContext = createContext();

function App() {
const searchUrl = import.meta.env.VITE_SEARCH_ENDPOINT;
const monarchUrl = import.meta.env.VITE_MONARCH_SEARCH;
const vocabUrl = import.meta.env.VITE_VOCAB_ENDPOINT;
const clientId = import.meta.env.VITE_CLIENT_ID;
const mapDragonVersion = import.meta.env.VITE_MAPDRAGON_VERSION;
Expand Down Expand Up @@ -37,18 +35,18 @@ function App() {
const [selectedKey, setSelectedKey] = useState(null);
const [user, setUser] = useState(null);
const [ontologyForPagination, setOntologyForPagination] = useState([]);
const [ucumCodes, setUcumCodes] = useState([]);

message.config({
top: '25vh',
});

return (
<GoogleOAuthProvider clientId={clientId}>
<myContext.Provider
value={{
results,
setResults,
searchUrl,
monarchUrl,
vocabUrl,
mapDragonVersion,
tablesDD,
Expand Down Expand Up @@ -79,6 +77,8 @@ function App() {
setImportState,
ontologyForPagination,
setOntologyForPagination,
ucumCodes,
setUcumCodes,
}}
>
<AppRouter />
Expand Down
20 changes: 8 additions & 12 deletions src/App.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
body{

background: url('./assets/Background.png');
background-size: 100vw;
background-repeat: no-repeat;
background-position: calc(50% - 50px) 50%;
background-attachment: fixed;

body {
background: url('./assets/Background.png');
background-size: 100vw;
background-repeat: no-repeat;
background-position: calc(50% - 50px) 50%;
background-attachment: fixed;
}
.approuter_div {
display: flex;
Expand All @@ -16,13 +14,11 @@ body{

.outlet_div {
position: relative;
background-color: rgba(255,255,255,.3);
background-color: rgba(255, 255, 255, 0.3);
}

.header {
z-index: 100;
position: sticky;
top:0;
top: 0;
}


34 changes: 17 additions & 17 deletions src/AppRouter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,24 @@ export const AppRouter = () => {
>
<Route index element={<OntologySearch />} />
<Route element={<PageLayout />}>
<Route path="/search/:query" element={<SearchResults />} />
<Route path="/404" element={<Error404 />} />
<Route element={<SearchContextRoot />}>
<Route path="/search/:query" element={<SearchResults />} />
<Route path="/404" element={<Error404 />} />

<Route path="/ontologies" element={<OntologyInfo />} />
<Route path="/about" element={<About />} />
<Route
path="/terminologies"
element={
isLoggedIn() ? <TerminologyList /> : <Navigate to="/login" />
}
/>
<Route path="/login" element={<LoginPage />} />
<Route
path="/terminology"
element={<Navigate to="/terminologies" />}
/>
<Route element={<MappingContextRoot />}>
<Route element={<SearchContextRoot />}>
<Route path="/ontologies" element={<OntologyInfo />} />
<Route path="/about" element={<About />} />
<Route
path="/terminologies"
element={
isLoggedIn() ? <TerminologyList /> : <Navigate to="/login" />
}
/>
<Route path="/login" element={<LoginPage />} />
<Route
path="/terminology"
element={<Navigate to="/terminologies" />}
/>
<Route element={<MappingContextRoot />}>
<Route
path="/studies"
element={
Expand Down
19 changes: 18 additions & 1 deletion src/Contexts/SearchContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ export function SearchContextRoot() {
const [ontologyApis, setOntologyApis] = useState([]);
const [apiPreferencesTerm, setApiPreferencesTerm] = useState(undefined);
const [searchText, setSearchText] = useState('');
const [checkedOntologies, setCheckedOntologies] = useState([]);
const [moreAvailable, setMoreAvailable] = useState(false);
const [resultsCount, setResultsCount] = useState();
const [selectedApi, setSelectedApi] = useState('');

const defaultOntologies = 'mondo,hp,maxo,ncit';
const entriesPerPage = 100;

const defaultOntologies =
selectedApi === 'ols' ? 'MONDO,HP,MAXO,NCIT' : 'SNOMEDCT_US';
const preferenceTypeSet = data =>
apiPreferencesTerm ? setApiPreferencesTerm(data) : setApiPreferences(data);

Expand Down Expand Up @@ -66,6 +73,16 @@ export function SearchContextRoot() {
prefTypeKey,
searchText,
setSearchText,
checkedOntologies,
setCheckedOntologies,
entriesPerPage,
moreAvailable,
setMoreAvailable,
resultsCount,
setResultsCount,

selectedApi,
setSelectedApi,
};

return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/About/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const About = () => {
{loading ? (
<Spinner />
) : (
<div className="studies_container">
<div className="about_container">
<h2>About</h2>
<div className="about_description">
<Descriptions title="Version" bordered column={1} items={items} />
Expand Down
5 changes: 5 additions & 0 deletions src/components/About/About.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.about_container {
margin: -26.5vh 10vw 10vh 10vw;
line-height: 1.5rem;
}

.about_description {
width: 500px;
}
Loading
Loading