Ticket #5240 (new enhancement)
Opened 5 years ago
Last modified 12 months ago
Expose Trac timeline data as JSON(P)
| Reported by: | oyasumi+trac.edgewall.org@… | Owned by: | osimons |
|---|---|---|---|
| Priority: | normal | Milestone: | unscheduled |
| Component: | timeline | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | lists@… | ||
| Release Notes: | |||
| API Changes: | |||
Description
I would want the option of exporting Timelines not only in HTML format, but in raw JSON (and JSONP, with a javascript padding callback) data format, too. The same goes for the Search view (but that's another ticket, really).
Given that, people can make their own uncoupled interfaces for the data set, such as this cool view, built solely from this JSON data set.
Attachments
Change History
comment:1 Changed 4 years ago by sid
comment:2 Changed 4 years ago by cboos
See also #3332 - convert the timeline data to some other arbitrary format.
comment:3 Changed 3 years ago by rblank
- Milestone set to 1.0
- Priority changed from high to normal
This could be implemented in a plugin, but the timeline currently lacks an adequate interface. It should probably grow an IContentConverter implementation.
comment:4 Changed 22 months ago by cboos
- Milestone changed from 1.0 to unscheduled
Milestone 1.0 deleted
comment:5 Changed 17 months ago by Thijs Triemstra <lists@…>
- Cc lists@… added
- Owner changed from cboos to osimons
- Summary changed from Expose Trac timeline data as JSONP to Expose Trac timeline data as JSON(P)
osimons, this is now part of the xml-rpc plugin right?
comment:6 Changed 17 months ago by osimons
Almost... JSON is now supported by th:XmlRpcPlugin. And, it does provide an interface to Search. However, Timeline support is not yet added - see th:ticket:5527
I'll get around to completing this at some stage. Promise...
comment:7 follow-up: ↓ 8 Changed 13 months ago by thijstriemstra
So it's a plugin issue?
comment:8 in reply to: ↑ 7 ; follow-up: ↓ 9 Changed 12 months ago by osimons
Replying to thijstriemstra:
So it's a plugin issue?
No, not only a plugin issue. The Timeline API pre-supposes HTML-based output, which makes reuse in other formats more difficult than it needs to. Content can arrive in any form as plugins are free to at will. And output may differ depending on project and user/session settings.
This complexity is the main reason why the RPC plugin does not support Timeline. There are other discussions of this elsewhere... :-)
comment:9 in reply to: ↑ 8 Changed 12 months ago by cboos
Replying to osimons:
Replying to thijstriemstra:
So it's a plugin issue?
... elsewhere...
i.e. #6492, in particular Simon's comment:31 and my reply in comment:34.



Seems like something that should go into a plugin..