https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362010-08-26T22:26:56ZEcoinformatics RedmineKepler - Bug #5129: adding and removing configuration properties could be made easierhttps://projects.ecoinformatics.org/ecoinfo/issues/5129?journal_id=177602010-08-26T22:26:56ZDaniel Crawldanielcrawl@gmail.com
<ul></ul><p>If a new release of a module contains new properties in one of its configuration files, these updates will not appear since the existing configuration file in KeplerData is used.</p> Kepler - Bug #5129: adding and removing configuration properties could be made easierhttps://projects.ecoinformatics.org/ecoinfo/issues/5129?journal_id=177612010-10-28T01:08:38ZJing Taotao@nceas.ucsb.edu
<ul></ul><p>In order to make workflow scheduler work, we added a new path -authorization path into the repository. This needs user to remove the old configuration.xml under KeplerData/modules/configruation first.</p>
<p>It is not going to work for regular users. We should automate a way to do this.</p> Kepler - Bug #5129: adding and removing configuration properties could be made easierhttps://projects.ecoinformatics.org/ecoinfo/issues/5129?journal_id=177622011-01-04T23:22:33ZDavid Welkerdavid.v.welker@gmail.com
<ul></ul><p>I have made changes to the configuration manager, so that any completely new configuration that is in the active modules but not in KeplerData is added to KeplerData. This will allow developers to add entirely new configuration even if that configuration is not present in KeplerData.</p>
<p>There are limitations that should be noted however. First and foremost, if what one wants to add is not entirely new configuration, but another configuration item to a list of configuration items, this is not currently possible.</p>
<p>Looking into solutions that are more robust and allow adding new items...</p> Kepler - Bug #5129: adding and removing configuration properties could be made easierhttps://projects.ecoinformatics.org/ecoinfo/issues/5129?journal_id=177632011-01-17T01:43:49ZDavid Welkerdavid.v.welker@gmail.com
<ul></ul><p>I have added the ability to make what I call add directives. For example, in a module, if you add a new folder called "configuration-directives" and a file called "add.xml" in a module, you will have created a configuration directive for the default "configuraion.xml" file for that module. If you would like to make an add directive for a different file, say "myconfig.xml", you would change the name of the add directive file by simply appending -add.xml to the file name. So, add directive for "myconfig.xml" would go in a file called "myconfig-add.xml."</p>
<p>The contents of add directives can either be simple or complex or a combination of both. For example, a configuration directive may simply make simple additions:</p>
<p><config><br /> <property1>myValue</property1><br /> <property2>myValue2</property2><br /></config></p>
<p>In this example, this add directive specifies that the simply properties property1 and property2 should be added to configuration.xml.</p>
<p>A complex example is as follows:</p>
<p><config><br /> <complexProperty><br /> <name1>myValue</name1><br /> <name2>myValue2</name2><br /> <name3>myValue3</name3><br /> </complexProperty><br /></config></p>
<p>In this example, this add directive specifies that this complex property with three parts should be added to configuration.xml.</p>
<p>At this stage, I have decided not to add remove or change directives, as further discussion is necessary regarding whether such directives are desirable, and if so, how they should work.</p>
<p>Closing this bug.</p> Kepler - Bug #5129: adding and removing configuration properties could be made easierhttps://projects.ecoinformatics.org/ecoinfo/issues/5129?journal_id=177642011-01-26T19:31:11ZDerik Barseghianbarseghian@nceas.ucsb.edu
<ul></ul><p>I'm reopening this -- now that this directive solution has been implemented, someone needs to utilize it to update the user's config files for any changes we've made. I see there's only an 'add directive' currently-- hopefully no one has removed any properties (i don't know offhand). Diff'ing a 2.0 and 2.1 user's KeplerData config files with those in the release might be one way to try to track these down...</p> Kepler - Bug #5129: adding and removing configuration properties could be made easierhttps://projects.ecoinformatics.org/ecoinfo/issues/5129?journal_id=177652011-01-31T21:13:16ZDavid Welkerdavid.v.welker@gmail.com
<ul></ul><p>I have sent an email to kepler-dev to get responses from people who have made configuration changes since Kepler 2.1. For people who respond, I will put their name and their changes in this bug.</p> Kepler - Bug #5129: adding and removing configuration properties could be made easierhttps://projects.ecoinformatics.org/ecoinfo/issues/5129?journal_id=177662011-02-14T22:43:00ZDavid Welkerdavid.v.welker@gmail.com
<ul></ul><p>This enhancement needs to accommodate not just addition, but changes and deletions as well. All that has been implemented to this point are additions. Changes and deletions will be addressed sometime post 2.2, probably in 2.3.</p> Kepler - Bug #5129: adding and removing configuration properties could be made easierhttps://projects.ecoinformatics.org/ecoinfo/issues/5129?journal_id=177672011-06-22T19:43:50ZDerik Barseghianbarseghian@nceas.ucsb.edu
<ul></ul><p>The hack included at r26897 to move old configuration xml files out of the way for the first launch of kepler-2.2.0 is not going to help a user moving from any pre-2.2 kepler to any release that's not kepler-2.2.0, e.g. the upcoming kepler-2.3.0 or reporting-2.3.0.</p> Kepler - Bug #5129: adding and removing configuration properties could be made easierhttps://projects.ecoinformatics.org/ecoinfo/issues/5129?journal_id=177682011-07-14T20:08:11ZDerik Barseghianbarseghian@nceas.ucsb.edu
<ul></ul><p>Two more issues:<br />1) if you start kepler-2.2.0 for the first time, your File menu will have 1 Open... option (can open .moml, .kar, .xml). If you move to reporting-2.1.0, you have Open..., Open MoML..., Open MoML URL..., as it is at this version. However when you move back to 2.2.0, the 2 MoML menu items incorrectly remain. This is because tagging adds a menu item, which causes uiMenuMappings_en_US.xml to serialize to disk, and 2.2.0 lacks code to remove the extra MoML items. <br />The tagging menu item doesn't show up in 2.2.0, but this is more by 'luck'-- the MenuMapper.getActionFor can't create an Action for the missing org.kepler.tagging.TagManagerAction and so it fails to get added.</p>
<p>2) There were some changes to how the tagging menu item gets added post reporting-2.1.0. So in post reporting-2.1.0 the item gets added to the uiMenuMappings_en_US.xml on every startup. This doesn't cause an error per say, but the xml file grows with duplicate entries. The sensor-view suite has a similar problem with menu items it adds.</p> Kepler - Bug #5129: adding and removing configuration properties could be made easierhttps://projects.ecoinformatics.org/ecoinfo/issues/5129?journal_id=177692011-07-28T23:19:22ZDerik Barseghianbarseghian@nceas.ucsb.edu
<ul></ul><p>At r27977 and 27978, I checked in a stopgap to this bug -- now configuration xml files are stored in version specific configuration directories. This is not ideal in that a user's settings will not 'carry over' when moving between versions, but something had to be done, and currently we don't have many user settings.</p> Kepler - Bug #5129: adding and removing configuration properties could be made easierhttps://projects.ecoinformatics.org/ecoinfo/issues/5129?journal_id=177702013-03-27T21:29:20ZRedmine Admin
<ul></ul><p>Original Bugzilla ID was 5129</p>