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

Update clickhouse data and starter site Analytics widget to use new field/property names #30802

Open
john-thomas-dotcms opened this issue Nov 27, 2024 · 3 comments
Assignees
Labels

Comments

@john-thomas-dotcms
Copy link
Contributor

Parent Issue

No response

Task

See #30411

The data already collected in clickhouse, and the analytics widget in the starter site, need to be modified so the field values match.

Proposed Objective

Technical User Experience

Proposed Priority

Priority 2 - Important

Acceptance Criteria

No response

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

No response

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

@john-thomas-dotcms john-thomas-dotcms moved this from New to Current Sprint Backlog in dotCMS - Product Planning Nov 27, 2024
@freddyDOTCMS freddyDOTCMS moved this from Current Sprint Backlog to In Progress in dotCMS - Product Planning Dec 12, 2024
@freddyDOTCMS freddyDOTCMS self-assigned this Dec 12, 2024
@freddyDOTCMS freddyDOTCMS added on hold In Progress, but paused to work on higher priority card and removed on hold In Progress, but paused to work on higher priority card labels Dec 17, 2024
@freddyDOTCMS freddyDOTCMS moved this from In Progress to In Review in dotCMS - Product Planning Dec 24, 2024
@freddyDOTCMS
Copy link
Contributor

Some changes were done in the ClickHouse datase so we need to run the follow script

If you start with the events table already created then run first:

ALTER TABLE events DROP COLUMN object_id;
ALTER TABLE events DROP COLUMN rendermode;
ALTER TABLE events DROP COLUMN object_content_type_var_name;
ALTER TABLE events DROP COLUMN host;
ALTER TABLE events DROP COLUMN object_response;
ALTER TABLE events DROP COLUMN object_content_type_id;
ALTER TABLE events DROP COLUMN object_content_type_name;
ALTER TABLE events DROP COLUMN object_content_type_var_name;
ALTER TABLE events DROP COLUMN object_response;
ALTER TABLE events DROP COLUMN object_detail_page_url;
ALTER TABLE events DROP COLUMN object_url;

No matter if any on the statement fails just continue with the next one

Later run the follow statement, run just this second set if you start with a empty database

ALTER TABLE events ADD COLUMN object_working String;
ALTER TABLE events ADD COLUMN object_live String;
ALTER TABLE events ADD COLUMN object_contenttypeid String;
ALTER TABLE events ADD COLUMN object_contenttypename String;
ALTER TABLE events ADD COLUMN object_identifier String;
ALTER TABLE events ADD COLUMN conhost String;
ALTER TABLE events ADD COLUMN conhostname String;
ALTER TABLE events ADD COLUMN sessionid String;
ALTER TABLE events ADD COLUMN sessionnew bool;
ALTER TABLE events ADD COLUMN useragent String;
ALTER TABLE events ADD COLUMN object_contenttype String;
ALTER TABLE events ADD COLUMN languageid String;
ALTER TABLE events ADD COLUMN object_action String;
ALTER TABLE events ADD COLUMN object_forward_to String;
ALTER TABLE events ADD COLUMN object_basetype String;
ALTER TABLE events ADD COLUMN request_id String;
ALTER TABLE events ADD COLUMN object_title String;

@freddyDOTCMS
Copy link
Contributor

I updated this document, the queries there were the test cases use to test the changes

https://docs.google.com/document/d/1Qq2v-rxYGmmNNZ2HrMvTiYMg59sQr6FfHXNIniCh3L4/edit?tab=t.0

freddyDOTCMS added a commit that referenced this issue Dec 24, 2024
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Review
Development

No branches or pull requests

2 participants