Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for one-shot task resolution from WorkedEntity #47

Open
simone3991 opened this issue Aug 30, 2021 · 0 comments
Open

Allow for one-shot task resolution from WorkedEntity #47

simone3991 opened this issue Aug 30, 2021 · 0 comments
Labels
enhancement New feature or request Hacktoberfest

Comments

@simone3991
Copy link
Member

simone3991 commented Aug 30, 2021

Given W as the worked entity extracted via LUIS from the user's sentence, the project recognition flow is structured as follows:

  • Retrieves all the Clockify projects of the user workspace
  • Search for an exact match of W in the projects list
  • Search for the best match of W in the projects list using a string distance algorithm

Add another step in the project recognition flow where if no match is found, try to infer the Clockify project by assuming that W is a task. In detail:

  • Retrieve all Clockify tasks per project
  • Make tasks unique and keep duplicate values
  • Search for an exact match of W in the tasks duplicate values, if it exists then throw an AmbiguousRecognizableProjectException
  • Search for the best match of W in the tasks duplicate values using string distance algorithm and handle ambiguous cases
  • Search for an exact match of W in the tasks unique list
  • Search for the best match of W in the tasks unique list using a string distance algorithm (ambiguous cases must be handled as for the search in the project list)

All Clockify tasks per project could be retrieved via the global Clockify API at the following endpoint https://global.api.clockify.me/workspaces/{WORKSPACE_ID}/projects/tasks/report-filters

@simone3991 simone3991 added the enhancement New feature or request label Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants