Skip to content

Commit

Permalink
#30307 Calculating whatAmI right when the request is a Vanity redirect (
Browse files Browse the repository at this point in the history
#30309)

### Proposed Changes
* Calculate the whatIam right when the request is a Vanity redirect
  • Loading branch information
freddyDOTCMS authored Oct 9, 2024
1 parent a628ec4 commit 039ef20
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ cube('request', {
CASE
WHEN MAX(CASE WHEN event_type = 'FILE_REQUEST' THEN 1 ELSE 0 END) = 1 THEN 'FILE'
WHEN MAX(CASE WHEN event_type = 'PAGE_REQUEST' THEN 1 ELSE 0 END) = 1 THEN 'PAGE'
ELSE 'NOTHING'
WHEN MAX(CASE WHEN event_type = 'VANITY_REQUEST' AND object_response != '200' THEN 1 ELSE 0 END) = 1 THEN 'VANITY_REDIRECT'
ELSE 'OTHER'
END AS what_am_i
FROM events
GROUP BY request_id`,
Expand Down

0 comments on commit 039ef20

Please sign in to comment.