Page MenuHomePhabricator

Wikifunctions Analytics: Display edits of existing implementations and tests
Closed, ResolvedPublic

Description

Description

Wikifunctions' superset dashboard displays 2 separate bar graphs for Create a function definition and Edit an existing function definition. (These are in the Interaction metrics tab.) However, for implementations and tests we only display one bargraph each: Create implementations via code or composition and Create tests.

  • For consistency and completeness of info, please add 2 new bargraphs: Edit an existing implementation and Edit an existing test.
  • Also, for additional consistency clarity and simplicity, please update the existing bargraph titles as follows.
    • Change Create implementations via code or composition to just Create an implementation
    • Change Create tests to Create a test

The queries for the new Edit an existing implementation bargraph are the same as for the existing Create implementations via code or composition bargraph, except they should check for isnewzobject = false. Similarly, The queries for the new Edit an existing test bargraph are the same as for the existing Create tests bargraph, except they should check for isnewzobject = false.

Event Timeline

MNeisler triaged this task as Medium priority.
MNeisler moved this task from Triage to Current Quarter on the Product-Analytics board.

@DMartin-WMF

While working on these updates, I found that the total number of publish events was higher than the number of attempts started for both edits of existing implementation and edits of existing tests. The difference is especially high for edit existing test events.

This seems unexpected if every attempt can only have one associated publish event and not what we found for any of the creation workflow events or function edit events.

See queries and totals below. Let me know if any additional data would be useful in investigating the cause.

Edits to an existing test

  • 145 test-edit attempts started
  • 260 test-edits attempts ending in publish
-- number of test-edit attempts started
SELECT
name,
COUNT(1) AS n_events
FROM event.wikifunctions_ui
WHERE
name = 'wf.ui.defaultView.load' 
AND element_at(custom_data, 'edit').value = 'true'  
AND element_at(custom_data, 'zobjecttype').value = 'Z20' 
AND  element_at(custom_data, 'isnewzobject').value = 'false'
AND Year >= 2023
GROUP BY 
name
-- number of test-edit attempts published
SELECT
name,
COUNT(1) AS n_events
FROM event.wikifunctions_ui
WHERE
name = 'wf.ui.editTester.publish' 
AND  element_at(custom_data, 'isnewzobject').value = 'false'
AND Year >= 2023
GROUP BY 
name

Edits to an existing implementation

  • 421 implementation edit attempts started
  • 436 implementation edits attempts published
-- number of implementation edit attempts started
SELECT
name,
COUNT(1) AS n_events
FROM event.wikifunctions_ui
WHERE
name = 'wf.ui.defaultView.load' 
AND element_at(custom_data, 'edit').value = 'true'  
AND element_at(custom_data, 'zobjecttype').value = 'Z14' 
AND  element_at(custom_data, 'isnewzobject').value = 'false'
AND Year >= 2023
GROUP BY 
name
-- number of implementation edit attempts published
SELECT
name,
COUNT(1) AS n_events
FROM event.wikifunctions_ui
WHERE
name = 'wf.ui.editImplementation.publish' 
AND  element_at(custom_data, 'isnewzobject').value = 'false'
AND Year >= 2023
GROUP BY 
name

Closing this because the requested display changes have been completed. The noted count discrepancies will be addressed in T350066.