[csw-maintainers] moving along...
Dagobert Michelsen
dam at opencsw.org
Sun Aug 7 16:36:31 CEST 2011
Hi Maciej,
Am 07.08.2011 um 15:01 schrieb Maciej Bliziński:
> 2011/8/7 Dagobert Michelsen <dam at opencsw.org>:
>> How about making a custom REST interface to Mantis ourselves
>> which just harcode the structures and modify the database directly?
>> From the experience of my (read-only) bug viewer interface that shouldn't
>> be too hard, make a clean interface for now and won't waste resources
>> on things we probably won't need later on.
>
> Certainly doable. Perhaps we could only implement a minimal set of
> functions that are not available through the SOAP interface. For
> instance, the Mantis SOAP API[1] in theory provides the
> mc_projects_get_user_accessible function, but in practice, it only
> returns a "(500, Null)" tuple, whatever that means. If the other
> functions (e.g. add a new project) work, we could use SOAP to do
> these.
If was thinking of completely ignoring the broken, incomplete API
and do something separetely modifying the database directly.
> The integration job that we need, would be something like:
>
> - get the list of projects in mantis
Easy, I have SQL for that.
> - get the list of packages in $catalog_release
> - generate the diff
> - take renames into account (not yet sure how)
> - add missing packages to mantis
This needs to be looked at. Should be doable in an hour or so. Do we still have
mysqladmin or something on the database somewhere?
> - print the list of projects in mantis with no corresponding packages
> (I wouldn't recommend deleting them automatically)
> - make sure that the package - maintainer assignments are up to date / correct
>
> Perhaps more. As far as reading, I thought about cheating and parsing HTML...
of packages/* ? Should not be necessary as reading the DB directly is pretty
straight forward.
Best regards
-- Dago
--
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896
More information about the maintainers
mailing list