Skip to content

Conversation

@SenecaAnderson
Copy link
Contributor

…JSON object from index.js

Summary

The schema for configuration files was updated to include titles for each field. The schema is now exported from index.js.

New behavior

index.js exports the schema. The schema now includes titles.

Code changes

  • Added titles to fields in schema
  • Added require statement in index.js
  • Added configSchema to module.exports in index.js

Testing guidance

Add a console.log statement to print configSchema. Run extraction. The object will print.

Copy link
Contributor

@jafeltra jafeltra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, I just had two really small comments!

src/index.js Outdated
const { getConditionEntriesFromContext, getConditionsFromContext, getEncountersFromContext, getPatientFromContext } = require('./helpers/contextUtils');
const { parsePatientIds } = require('./helpers/appUtils');
const { getConfig, validateConfig } = require('./helpers/configUtils');

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incredibly small, but can we remove the blank line between the exports here? They should all stay grouped together.

]
},
"tlsRejectUnauthorized": {
"title": "Reject Unauthorized Connections",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I would have this title still include "TLS", so maybe just "TLS Reject Unauthorized Connections".

@SenecaAnderson
Copy link
Contributor Author

I have pushed the requested changes.

Copy link
Contributor

@jafeltra jafeltra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!

@jafeltra jafeltra merged commit a92a233 into develop Jul 30, 2021
@jafeltra jafeltra deleted the update-schema-and-export branch July 30, 2021 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants