stable
Clone or download
story #9027 detect and link teamforge references
* clear tuleap cache * install & activate teamforge_compat plugin * try to import the following project <?xml version="1.0" encoding="UTF-8"?> <project unix-name="toto57" full-name="Super Mario" description="123 Soleil" access="public"> <long-description> Test description </long-description> <ugroups> <ugroup name="project_members" description=""> <members> <member format="username">adrien</member> </members> </ugroup> </ugroups> <services> <service shortname="file" enabled="true" /> </services> <frs> <package id="1" name="empty_package"> <read-access> <ugroup>project_members</ugroup> </read-access> </package> <package id="2" name="empty_package2"> <read-access> <ugroup>project_members</ugroup> </read-access> </package> <package id="3" name="empty_package3"> <read-access> <ugroup>project_members</ugroup> </read-access> </package> <administrators> <user format="username">adrien</user> </administrators> <references> <reference source="stuff1234" target="1"/> <reference source="pkg1234" target="1"/> <reference source="pkg1235" target="2"/> <reference source="pkg1232" target="3"/> </references> </frs> </project> *go to an artifact in a tracker for example and update a field with pkg1234. You should see a link that redirects you to the frs package. Change-Id: I9b44dd94a0cb6e420d2c03b1ff23f0f135c93cfc
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/teamforge_compat/db/install.sql | +2 | −2 | Go to diff View file |
M | plugins/teamforge_compat/include/TeamforgeCompat/Plugin/PluginDescriptor.php | +4 | −2 | Go to diff View file |
M | plugins/teamforge_compat/include/TeamforgeCompat/Plugin/PluginInfo.php | +4 | −2 | Go to diff View file |
M | plugins/teamforge_compat/include/TeamforgeCompat/ReferencesImporter.class.php | +17 | −7 | Go to diff View file |
M | plugins/teamforge_compat/include/TeamforgeCompat/TeamforgeCompatDao.class.php | +11 | −3 | Go to diff View file |
A | plugins/teamforge_compat/include/TeamforgeCompat/TeamforgeReferencesBuilder.class.php | +145 | −0 | Go to diff View file |
M | plugins/teamforge_compat/include/autoload.php | +3 | −2 | Go to diff View file |
M | plugins/teamforge_compat/include/teamforge_compatPlugin.class.php | +41 | −7 | Go to diff View file |
M | plugins/teamforge_compat/tests/TeamforgeReferencesImporterTest.php | +13 | −5 | Go to diff View file |
M | src/common/event/Event.class.php | +9 | −0 | Go to diff View file |
M | src/common/reference/ReferenceManager.class.php | +107 | −30 | Go to diff View file |