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

Fixed not recalculate Meta Data Point if Context is empty #2922

Closed
Limraj opened this issue Jun 15, 2024 · 0 comments
Closed

Fixed not recalculate Meta Data Point if Context is empty #2922

Limraj opened this issue Jun 15, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@Limraj
Copy link
Collaborator

Limraj commented Jun 15, 2024

Description
If a Meta Data Point has an empty context, it should not be recalculated during initialization for Context Update and Change.

To Reproduce

  1. Login as admin;
  2. Created Meta Data Soruce as meta_1(enable) and two Meta Data Points:
  • dp_empty_change (settable, context: empty, enable, scirpt: "return 11;", Update event: Context change) ,
  • dp_empty_update (settable, context: empty, enable, script: "return 10;" Update event: Context update);
  1. Go to Watch Lists;
  2. Create Watch List as wl_1 with points:
  • meta_1 - dp_empty_change,
  • meta_1 - dp_empty_update;
  1. Set values:
  • meta_1 - dp_empty_change to 123;
  • meta_1 - dp_empty_update to 321;
  1. Restart tomcat;
  2. Login as admin;
  3. Go to Watch Lists and select wl_1 then values;
  • meta_1 - dp_empty_change is 11 -> error 1,
  • meta_1 - dp_empty_update is 10 -> error 2;
    The script was recalculated on initialization despite an empty context.

Spec:

  • Scada-LTS Version 2.7.7.3
@Limraj Limraj added the bug label Jun 15, 2024
@Limraj Limraj added this to the 2.7.8 milestone Jun 15, 2024
Limraj added a commit that referenced this issue Jun 15, 2024
- corrected condition in MetaPointLocatorRT.initialize if context empty then not execute;
- corrected MetaPointLocatorRtInitializeTest;
@Limraj Limraj self-assigned this Jun 16, 2024
Limraj added a commit that referenced this issue Jun 21, 2024
…te_Meta_Data_Point_if_Context_is_empty

#2922 Fixed not recalculate Meta Data Point if Context is empty:
@Limraj Limraj closed this as completed Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant