PathwayCommons / cpath2

Biological pathway data integration and access platform (Pathway Commons)
http://www.pathwaycommons.org/pc2/
MIT License
6 stars 5 forks source link

Assess log web api: add time interval option (e.g., year, month, day) #213

Closed IgorRodchenkov closed 9 years ago

IgorRodchenkov commented 9 years ago

1) Limit the access log timelines and charts to some period of time. 2) merge /log//stats and /log//ips pages/views; have just /log/* (only stats.jsp, which will include the charts from ips.jsp)

The easiest way (without much re-designing) would be to simply add a new parameter /{period}/ to the /log query urls: (for pages, where counts and geolocation charts are shown)

Examples:

IgorRodchenkov commented 9 years ago

Well, instead of changing the web api (/log) now, I am going to add a new system properties (cpath.log.start.date, cpath.log.end.date) and corresponding form controls on the /admin page to define the default dates interval for log timelines/views. E.g., initially, charts in /log/*/stats will display timelines in the date range from year ago to current date.

Implementing...