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

Adding SQL Triggers that check for undefined types in Custom XML #1453

Merged

Conversation

dhchandw
Copy link
Collaborator

Added SQL Triggers that check for undefined types in attributes ,command arguments and event fields for a custom XML when inserted into a session. Add session notice as required

Added relevant tests

Corrected typo in package.json

@dhchandw dhchandw force-pushed the task/ZAPP-1259/undefinedTypeWarning branch from a022004 to 4ac12b8 Compare October 14, 2024 22:00
@dhchandw dhchandw marked this pull request as ready for review October 15, 2024 13:32
@dhchandw dhchandw force-pushed the task/ZAPP-1259/undefinedTypeWarning branch from 4ac12b8 to 09e3a60 Compare October 15, 2024 15:24
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.76%. Comparing base (80dfe7a) to head (09e3a60).
Report is 13 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1453      +/-   ##
==========================================
+ Coverage   66.70%   66.76%   +0.06%     
==========================================
  Files         193      193              
  Lines       20853    20996     +143     
  Branches     4573     4613      +40     
==========================================
+ Hits        13911    14019     +108     
- Misses       6942     6977      +35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…nd arguments and event fields for a custom XML when inserted into a session. Add session notice as required

Added relevant tests

Corrected typo in package.json
@dhchandw dhchandw force-pushed the task/ZAPP-1259/undefinedTypeWarning branch from 09e3a60 to cfe29fe Compare October 16, 2024 15:32
sessionNotif.some(
(notif) =>
notif.type === 'ERROR' &&
notif.message.includes('Undefined Data Type') &&
Copy link
Collaborator

Choose a reason for hiding this comment

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

INT9 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

intentional errors in my custom XML with bad data type

sessionNotif.some(
(notif) =>
notif.type === 'ERROR' &&
notif.message.includes('Undefined Data Type') &&
Copy link
Collaborator

Choose a reason for hiding this comment

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

NOTYPE

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

intentional errors in my custom XML with bad data type

src-electron/db/zap-schema.sql Show resolved Hide resolved
src-electron/db/zap-schema.sql Show resolved Hide resolved
SELECT
1
FROM
SESSION_PACKAGE spk
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maintain consistency with the uppercase in spk, p, etc.

@dhchandw dhchandw merged commit 3a5b85a into project-chip:master Oct 22, 2024
14 checks passed
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.

4 participants