Details
-
Suggestion
-
Resolution: Fixed
-
None
Description
In order to be able to cache issues, and improve performance I need to fetch a list (of either id's or issues themselves) that are either deleted or updated since the last time I checked this. I would like to provide a date/time as an argument of course.
A method: String[] getIssueIdsForProject(String token, String[] projectKeys, String searchTerms, Date changedSince, int maxNumResults) would be sufficient I think. I could then try to fetch the new issues one by one, if some are deleted, I guess I will find out.
Another altertative would be: String[] getIssueIdsForProject(String token, String[] projectKeys, String searchTerms) plus RemoteIssue[] getIssuesForProject(String token, String[] projectKeys, String searchTerms, Date changedSince, int maxNumResults). Hence you can use the first method to figure out if some issues have been deleted. And then use the second method to get all the updated issues. This is probably a better solution?