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

[instrument] insert JSON intrument fix #7155

Merged
merged 2 commits into from
Dec 2, 2020

Conversation

laemtl
Copy link
Contributor

@laemtl laemtl commented Nov 30, 2020

Fixes minor warnings and the logic to populate an instrument with json_data === true.

@laemtl laemtl requested a review from ridz1208 November 30, 2020 23:40
@laemtl laemtl added the Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label) label Nov 30, 2020
php/libraries/NDB_BVL_Battery.class.inc Outdated Show resolved Hide resolved
@@ -35,7 +35,7 @@ abstract class NDB_BVL_Instrument extends NDB_Page
* JSON format from the "Data" column of the flag table, or
* from the traditional SQL tables.
*/
protected $jsonData = false;
public $jsonData = false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why was this made public ? you can reach the value from outside using usesJSONdata() or a soemthing like that. I dont think this variable should be modifiable by external classes

Copy link
Contributor Author

@laemtl laemtl Dec 1, 2020

Choose a reason for hiding this comment

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

@ridz1208 Fixed! I missed this accessor. I agree that it's safer to rely on it. Should it be the same for other properties like table, which is public (despite stating it is private in the class doc)?

@laemtl laemtl force-pushed the 2020-11-30-json-instrument-fix branch from 70de97f to 5f32b95 Compare December 1, 2020 15:38
@laemtl laemtl force-pushed the 2020-11-30-json-instrument-fix branch from 5f32b95 to 76eef7d Compare December 1, 2020 15:40
@driusan driusan merged commit 9d506e7 into aces:23.0-release Dec 2, 2020
@ridz1208 ridz1208 added this to the 23.0.3 milestone Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug PR or issue introducing/requiring bug fixes (not mutually exclusive with the Feature label)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants