-
Notifications
You must be signed in to change notification settings - Fork 20
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
ADDON-34273: globalConfig.json parsing and validation #111
ADDON-34273: globalConfig.json parsing and validation #111
Conversation
CLA Assistant Lite bot: I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, We should also fix eslint errors(which we can fix now. E.g. declaration of props-types, etc) along with development. So, it won't take extra efforts later.
@harshpatel-crest @tbalar-splunk @mchavda-splunk @dkhatri-crest
What do you think??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mamin-crest Will add the propTypes in the next PR
<> | ||
{ | ||
this.state.loading ? | ||
<WaitSpinner size="large" /> : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we center the WaitSpinner?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I Will add in the next PR
@@ -0,0 +1,255 @@ | |||
import schema from '../schema/schema.json'; | |||
import {Validator} from 'jsonschema'; | |||
import * as _ from 'lodash'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible we should avoid such large dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I will remove it after discussing it in the scrum
import messageDict from '../constants/messageDict'; | ||
|
||
/** | ||
* @param code {Int} a int value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should follow this docstring pattern everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this PR most of the javascript code is taken from the swc. So next time will add the docstring pattern in the function if necessary
} | ||
|
||
export function generateEndPointUrl(name) { | ||
console.log("unifiedConfig: ", unifiedConfigs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we put this console.log intentionally ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, It's just for reference to how to get unifiedConfigs data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure because, you already have put example in TestComponent.jsx
. and this is util file. So this will log everytime we call generateEndPointUrl
.
@@ -0,0 +1,1254 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, We should also add schemaGenerator.py
along with schema.json
as schema.json
generated by it. So, If we want to change schema.json
. We'll need it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Expected release notes (by @tbalar-splunk) features: fixes: others (will not be included in Semantic-Release notes):
|
🎉 This PR is included in version 4.4.0-develop.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 5.0.0-develop.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 5.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
JIRA Ticket: https://jira.splunk.com/browse/ADDON-34273