cloudstack/ui/public
Abhishek Kumar 92931aeeb8
schema,server,api: events improvement (#127)
Add resource ID and resource type to event.
In UI, adds Events tab in resource view for the supporting resources.

Following SQL changes needed to support events with resource details in DB,
```
 -- Alter event table to add resource_id and resource_type
ALTER TABLE `cloud`.`event`
    ADD COLUMN `resource_id` bigint unsigned COMMENT 'ID of the resource associated with the even' AFTER `domain_id`,
    ADD COLUMN `resource_type` varchar(32) COMMENT 'Account role in the project (Owner or Regular)' AFTER `resource_id`;

DROP VIEW IF EXISTS `cloud`.`event_view`;
CREATE VIEW `cloud`.`event_view` AS
    SELECT
        event.id,
        event.uuid,
        event.type,
        event.state,
        event.description,
        event.resource_id,
        event.resource_type,
        event.created,
        event.level,
        event.parameters,
        event.start_id,
        eve.uuid start_uuid,
        event.user_id,
        event.archived,
        event.display,
        user.username user_name,
        account.id account_id,
        account.uuid account_uuid,
        account.account_name account_name,
        account.type account_type,
        domain.id domain_id,
        domain.uuid domain_uuid,
        domain.name domain_name,
        domain.path domain_path,
        projects.id project_id,
        projects.uuid project_uuid,
        projects.name project_name
    FROM
        `cloud`.`event`
            INNER JOIN
        `cloud`.`account` ON event.account_id = account.id
            INNER JOIN
        `cloud`.`domain` ON event.domain_id = domain.id
            INNER JOIN
        `cloud`.`user` ON event.user_id = user.id
            LEFT JOIN
        `cloud`.`projects` ON projects.project_account_id = event.account_id
            LEFT JOIN
        `cloud`.`event` eve ON event.start_id = eve.id;
```
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
2022-05-05 13:44:33 +05:30
..
assets dashboard: Adding onboarding dashboard (#573) 2021-01-20 07:06:21 +05:30
js ui: use local copy of less.min.js 2021-09-07 18:11:45 +05:30
locales schema,server,api: events improvement (#127) 2022-05-05 13:44:33 +05:30
cloud.ico primate: initial UI v0.1 2021-01-20 07:06:11 +05:30
color.less ui: fix rat checks after import 2021-01-20 08:25:52 +05:30
config.json add a setting to config.json that allows users to set theme (#5584) 2022-01-17 11:30:56 +05:30
error.html packaging: build and bundle UI using npm in deb and rpm packages (#4605) 2021-01-28 14:29:31 +05:30
example.html ui: fix rat checks after import 2021-01-20 08:25:52 +05:30
index.html ui: fix rat checks after import 2021-01-20 08:25:52 +05:30