Skip to content

Commit

Permalink
Add support for unit configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
jdgarrett authored Nov 24, 2020
1 parent 6361329 commit 91e5bf1
Show file tree
Hide file tree
Showing 34 changed files with 1,703 additions and 305 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Ensure the following packages are installed.
### Development

- Create a file named `.env` at project root with the following in it. You can change the `USER_EDIPI` value to any
number greater than 1 to create a new user.
10 digit number greater than 1 to create a new user.
```
USER_EDIPI=1
USER_EDIPI=0000000001
```

- Navigate to the project root and run the following.
Expand Down Expand Up @@ -70,8 +70,8 @@ where `{name}` is the name of the migration you want to create. An empty templat

#### Restoring State Locally

If your local database schema falls out of sync with migrations and you want to get back to a clean state, you can
run `npm run seed-dev`. This will automatically recreate the database, apply the current migrations, and get the app back
If your local database schema falls out of sync with migrations and you want to get back to a clean state, you can
run `npm run seed-dev`. This will automatically recreate the database, apply the current migrations, and get the app back
into a usable state.

### Testing
Expand Down
43 changes: 40 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@types/dotenv": "^8.2.0",
"@types/http-proxy-middleware": "^0.19.3",
"@types/multer": "^1.4.4",
"@types/uuid": "^8.3.0",
"axios": "^0.20.0",
"axios-cookiejar-support": "^1.0.0",
"axios-retry": "^3.1.9",
Expand All @@ -35,6 +36,7 @@
"json-2-csv": "^3.7.8",
"lodash": "^4.17.20",
"moment": "^2.29.1",
"moment-timezone": "^0.5.32",
"morgan": "^1.10.0",
"multer": "^1.4.2",
"njwt": "^1.0.0",
Expand All @@ -55,7 +57,8 @@
"tough-cookie": "^4.0.0",
"ts-md5": "^1.2.7",
"typeorm": "^0.2.25",
"typeorm-naming-strategies": "^2.0.0"
"typeorm-naming-strategies": "^2.0.0",
"uuid": "^8.3.1"
},
"devDependencies": {
"@testing-library/jest-dom": "^4.2.4",
Expand Down
7 changes: 7 additions & 0 deletions server/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import orgRoutes from './org';
import userRoutes from './user';
import roleRoutes from './role';
import rosterRoutes from './roster';
import unitRoutes from './unit';
import accessRequestRoutes from './access-request';
import workspaceRoutes from './workspace';
import notificationRoutes from './notification';
Expand All @@ -19,6 +20,7 @@ router.use('/org', orgRoutes);
router.use('/user', userRoutes);
router.use('/role', roleRoutes);
router.use('/roster', rosterRoutes);
router.use('/unit', unitRoutes);
router.use('/access-request', accessRequestRoutes);
router.use('/workspace', workspaceRoutes);
router.use('/notification', notificationRoutes);
Expand Down Expand Up @@ -56,6 +58,10 @@ export type WorkspaceParam = {
workspaceId: string
};

export type UnitParam = {
unitId: string
};

export type SettingParam = {
settingId: string
};
Expand All @@ -68,6 +74,7 @@ export type OrgRoleParams = OrgParam & RoleParam;
export type OrgEdipiParams = OrgParam & EdipiParam;
export type OrgRosterParams = OrgParam & RosterParam;
export type OrgWorkspaceParams = OrgParam & WorkspaceParam;
export type OrgUnitParams = OrgParam & UnitParam;
export type OrgSettingParams = OrgParam & SettingParam;
export type OrgColumnNameParams = OrgParam & ColumnNameParam;

Expand Down
Loading

0 comments on commit 91e5bf1

Please sign in to comment.