Skip to content
This repository has been archived by the owner on Sep 3, 2019. It is now read-only.

Gestion plus complète des urls de rapport Toggl #25

Open
real34 opened this issue Oct 9, 2017 · 0 comments
Open

Gestion plus complète des urls de rapport Toggl #25

real34 opened this issue Oct 9, 2017 · 0 comments

Comments

@real34
Copy link
Contributor

real34 commented Oct 9, 2017

AFIN DE permettre une gestion de plus de typologie de projets
ETQ Facilitateur
JE PEUX comparer une version Redmine avec n'importe quel rapport Toggl


Actuellement seul un id projets et un id tâche sont possibles pour le rapprochement Toggl. Ce ticket consiste à gérer le plus de paramètres possibles.

Cas d'usages avérés :

  • TODO

Notes techniques

fromUrl : String -> TogglParams
fromUrl url =
-- Example: https://toggl.com/app/reports/summary/127309/period/thisYear/projects/34394176/tasks/16196934/billable/both
-- TODO Make me work for real with cleaner code
-- remove prefix
-- extract workspace id
-- split the rest as key values
let

-- TODO : handle several ids (example: "xxx/projects/123,456/yyy")
idsOfUrlParamName : String -> String -> Maybe (List Int)
idsOfUrlParamName paramName url =
let
regex = Regex.regex (paramName ++ "/([\\d]+)")
in

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant