-
Notifications
You must be signed in to change notification settings - Fork 19
Tool for editing component configuration #13
Comments
Editing properties of the widget, we need to modify as less files as possible. First, we need to always target main |
Portal properties are always defined via REST API call. There are 3 ways currently used:
The proper way is the first one or to keep the property definition in the xml file. The only problem with that is when property needs to be manageable inside Portal Manager and it needs to use select box. Right now, that is only possible by storing enumeration values inside index.html file and by using g:enumeration tag. I vote for creating proper and complete standard by keeping the property data inside backbase.json file. But until then, we need to do it by having xml file inside the component directory. Whenever that file is edited, bb-cli tool will be used to submit the changes via bb rest to the portal server. Use of g:preferences should be discouraged unless for specific case that is mentioned above. @operatino the commands that you are proposing would be another new way to submit preferences to the portal. I propose that instead, we have one simple command that will parse the xml file(that you will use anyway) and submit changes via REST API call to the server. If you want to add property, just add new property tag to xml. To remove property, just delete property tag from xml file. Same goes for tags or other changes in xml file. Because this was already planned and defined at bb-cli proposal I say that magic simple command should be:
and in case that you want to have watch process that will submit changes on every file change:
|
@igord, I agree with your current statement. But another thing to discuss is the name of Regarding proposed commands list in the body of the task, it's not for submitting preferences to remote model, but only for local file changes. Correct me, if I'm wrong, but I first thought that @GuilhermeMedeiros and @craigwalkeruk wanted to have command that just add properties to local files. As I see it, you run |
@igord, this task is about separate command, that adds preferences to sources, no sync, like |
Is there anyone that really wants that or it was misunderstanding? |
Following previous request #5, we break down our ideas to separate tools and tasks.
We want to have a separate command available in bb-cli, that will allow to easily edit any preferences and configuration of component.
This command will expose next actions:
Subjects for discussion:
(note that configuration sync command is a separate tool #14)
The text was updated successfully, but these errors were encountered: