Skip to content

feat(relay): persist MTConnect XML conditions into raw.conditions #248

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

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

ottobolyos
Copy link
Collaborator

No description provided.

@ottobolyos ottobolyos added enhancement New feature or request application:relay Anything related to a specific application labels Mar 8, 2024
@ottobolyos ottobolyos self-assigned this Mar 8, 2024
@ottobolyos
Copy link
Collaborator Author

ottobolyos commented Mar 8, 2024

TODO:

  • create cacheConditions() method:
    • create the method;
    • create unit tests for the method;
  • create getCachedConditionIndex() method:
    • create the method;
    • create unit tests for the method;
  • create table schema:
    • create the raw.conditions table;
    • create the public.conditions view;
    • create an index on the time, resolved_time, node_id columns;
    • create an index on the node_id, time columns;
  • add the table into DB schema for DB schema initialisation and DB migration;
  • create isCondition() method:
    • create the method;
    • create unit tests for the method;
  • create getConditionIdentifiers() method:
    • create the method;
    • create unit tests for the method;
  • create createCondition() method:
    • create the method;
    • create unit tests for the method;
  • create persistCondition() method (probably in common/db.js):
    • create the method;
    • create unit tests for the method;
  • update getHistoryRecords() to utilise isCondition(), cacheConditions() and persistCondition() methods:
    • update the method;
    • update the method unit tests;
  • test this feature in a demo/prod l99 instance (e2e tests);
  • release a new version of l99 images to Docker Hub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
application:relay Anything related to a specific application enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant