-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update activty string to include all relevant details for each action…
… event
- Loading branch information
1 parent
8c3be28
commit 7bf3698
Showing
7 changed files
with
4,002 additions
and
496 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
openadapt/process-graph/output/tmpkbsu9k18_files/jquery-3.6.3.min.js.download
Large diffs are not rendered by default.
Oops, something went wrong.
206 changes: 206 additions & 0 deletions
206
openadapt/process-graph/output/tmpkbsu9k18_files/viz.js.download
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
select r.id as case_id, | ||
we.title as activity, | ||
-- ae."timestamp" as timestamp, | ||
datetime(ae."timestamp", 'unixepoch', 'localtime') AS "timestamp", | ||
COALESCE(ae."timestamp" - LAG(ae."timestamp") OVER (ORDER BY ae."timestamp"), 0) as costs, | ||
ae.name as resource | ||
from recording r | ||
inner join action_event ae on r."timestamp" = ae.recording_timestamp | ||
inner join window_event we on r."timestamp" = we.recording_timestamp and we."timestamp" = ae.window_event_timestamp | ||
where r.id = 1 | ||
order by r.id, ae."timestamp"; | ||
SELECT | ||
R.ID AS "case_id", | ||
'Title: ' || WE.TITLE || ', Action: ' || AE.NAME || ', Action_Target: ' || | ||
CASE | ||
WHEN AE.NAME = 'scroll' THEN '(' || AE.mouse_dx || ',' || AE.mouse_dy || ')' | ||
WHEN AE.NAME = 'move' THEN '(' || AE.mouse_x || ',' || AE.mouse_y || ')' | ||
WHEN AE.NAME = 'click' THEN AE.mouse_button_name | ||
WHEN AE.NAME IN ('press', 'release') THEN AE.CANONICAL_KEY_NAME | ||
ELSE 'N/A' | ||
END AS "activity", | ||
DATETIME(AE."timestamp", 'unixepoch', 'localtime') AS "timestamp", | ||
COALESCE(AE."timestamp" - LAG(AE."timestamp") OVER (ORDER BY AE."timestamp"), 0) AS "costs", | ||
AE.NAME AS "resource" | ||
FROM | ||
RECORDING R | ||
INNER JOIN ACTION_EVENT AE ON R."timestamp" = AE.RECORDING_TIMESTAMP | ||
INNER JOIN WINDOW_EVENT WE ON R."timestamp" = WE.RECORDING_TIMESTAMP AND WE."timestamp" = AE.WINDOW_EVENT_TIMESTAMP | ||
WHERE | ||
R.ID = 1 | ||
ORDER BY | ||
R.ID, | ||
AE."timestamp"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.