Skip to content

Commit 6f5a6aa

Browse files
authored
Merge pull request #1542 from NASA-AMMOS/feature/fprime-sequencing
FPrime Dictionary Support
2 parents 2a7ba3b + 3b46aad commit 6f5a6aa

30 files changed

+12386
-192
lines changed

deployment/docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ services:
124124
SEQUENCING_DB_USER: "${SEQUENCING_USERNAME}"
125125
SEQUENCING_DB_PASSWORD: "${SEQUENCING_PASSWORD}"
126126
SEQUENCING_LOCAL_STORE: /usr/src/app/sequencing_file_store
127+
#DICTIONARY_PARSER_PLUGIN: "/fprime-dictionary-parser/fprime-parser.js" #-- Uncomment to use a different commmand dictionary parser
127128
SEQUENCING_WORKER_NUM: 8
128129
SEQUENCING_MAX_WORKER_NUM : 8
129130
SEQUENCING_MAX_WORKER_HEAP_MB: 1000

deployment/hasura/metadata/actions.graphql

+4-8
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type Mutation {
2626
}
2727

2828
type Mutation {
29-
uploadDictionary(dictionary: String!, type: String!): DictionaryResponse
29+
uploadDictionary(dictionary: String!): DictionaryResponse
3030
}
3131

3232
type Mutation {
@@ -212,13 +212,9 @@ type TypescriptFile {
212212
}
213213

214214
type DictionaryResponse {
215-
id: Int!
216-
dictionary_path: String!
217-
mission: String!
218-
version: String!
219-
parsed_json: Dictionary!
220-
created_at: String!
221-
type : String!
215+
command: Dictionary
216+
parameter: Dictionary
217+
channel: Dictionary
222218
}
223219

224220
type ExpansionSetResponse {

docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ services:
8989
SEQUENCING_DB_USER: "${SEQUENCING_USERNAME}"
9090
SEQUENCING_DB_PASSWORD: "${SEQUENCING_PASSWORD}"
9191
SEQUENCING_LOCAL_STORE: /usr/src/app/sequencing_file_store
92+
#DICTIONARY_PARSER_PLUGIN: "/fprime-dictionary-parser/fprime-parser.js" #-- Relative to sequencing-server/plugins, Uncomment to use a different command dictionary parser
9293
SEQUENCING_WORKER_NUM: 8
9394
SEQUENCING_MAX_WORKER_NUM : 8
9495
SEQUENCING_MAX_WORKER_HEAP_MB: 1000

sequencing-server/jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
testRunner: 'jest-circus/runner',
1414
// testRegex: "(/test/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
1515
testRegex: '((\\.|/)(test|spec))\\.(jsx?|tsx?)$',
16-
testPathIgnorePatterns: ['/node_modules/', '/build/'],
16+
testPathIgnorePatterns: ['/node_modules/', '/build/', '/plugins/'],
1717
coverageReporters: ['html'],
1818
setupFiles: ['dotenv/config', './src/polyfills.ts'],
1919
globalSetup: './jestGlobalSetup.js',

0 commit comments

Comments
 (0)