-
Notifications
You must be signed in to change notification settings - Fork 22
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
Some variables accessible before in rules not accessible now #1097
Comments
https://prerelease.avniproject.org/#/appdesigner/forms/ed2c239a-00ca-439c-8f2b-76543fdc55cf -> 'Average Scores and Feedback' FEG -> 'Average Scores' FE (QuestionGroup) -> All the rules for the questions under that Prod - https://app.avniproject.org/#/appdesigner/forms/ed2c239a-00ca-439c-8f2b-76543fdc55cf 'lfeteach' org in both environments |
LFE branch seems incorrect. it has commits upto feb 23. but the apk release is only upto Jan. |
I think we planned to release lfe to fix some of the bigger items that came from our post-upgrade issues, but never got around to deploying. In any case, the lfe branch is not required anymore since we have moved all features from lfe to our main branches. |
Number of form elements that use formElement via params.formElement: 25449select count(*) from form_element Number of form elements that use formElement without params.formElement: only a few form elements in LFE Teach. LFE Teach instance our main hosting is not the real prod.select o.name, form_element.group_id from form_element |
@petmongrels we had discussed in standup(u were not there) that we 'll identify why the issue happened now - how the global variables are not accessible now to identify like |
JS globals had stopped working sometime beginning of this year, after last react native upgrade I think. we had to explicitly exposed globals as in the following commits. But we also deprecated this approach. So it has been a while now that accessing things from global do not work and using from lib is deprecated. avniproject/rules-config@cf69907 moving back to analysis |
Verified. This is not an issue in the primary production organisation. There are issues on the lfeTeach which will need to be fixed. Queries
|
@mahalakshme output - we need to fix rules for all organisations within lfeTeach for them to be using the rules. |
@vinayvenu I added it in release 5.0 card yesterday - since implementation team can do it as part of the release |
@nupoorkhandelwal @salilsamanvay @vedfordev Is there a reason why the "Average scores and Feedback" is hidden for AP Teach and Teach NL UAT? There is a problem with the rules on form elements of this page. It will break if we ever try to enable it. |
Closing this since when the rule is enabled and tested it will anyways get identified. |
Description:
Refer the below links for description:
https://github.com/avniproject/avni-security/issues/1#issuecomment-1717464830
https://github.com/avniproject/avni-security/issues/1#issuecomment-1719097094
Acceptance criteria:
Understand how this formElement was accessible before. Identify if there is possibility for any other variables to be accessible without being passed as parameters to the rules. Ideally variables not passed as parameters to the rule should not be accessible. Fix the necessary rules and the code accordingly.
The text was updated successfully, but these errors were encountered: