gtt-project/redmine_gtt_smash

tags.json for whole Redmine instance

Closed this issue · 4 comments

To support multiple projects at once, let's add another API endpoint, for example /smash_tags.json on the root level.

Expected functionality

  • returns all tracker types
  • makes the project_id field public
  • makes the project_id field a select field with all available projects as option.
  • takes into account that the SMASH module is enabled
  • takes into account role permissions if possible
  • takes into account #16 and #15
sanak commented

As I mentioned in #15 (comment), supporting Category and Target version will be impossible in this endpoint.

Yes, that's fine. So it will never be part of the SMASH form but only supported on the desktop.

sanak commented

Okay.

About the following,

takes into account role permissions if possible

there seems to be convenient function (Tracker.visible(user)).
https://github.com/redmica/redmica/blob/master/app/models/tracker.rb#L50-L71

sanak commented

I missed the following, so above Tracker.visible(user) can't be used as it is...

takes into account that the SMASH module is enabled