Skip to content

Display the list of RDI instances#2853

Merged
kyle-marcum merged 6 commits intofeature/RI-4616-rdi-supportfrom
fe/feature/RI-5152_rdi-instances
Dec 15, 2023
Merged

Display the list of RDI instances#2853
kyle-marcum merged 6 commits intofeature/RI-4616-rdi-supportfrom
fe/feature/RI-5152_rdi-instances

Conversation

@kyle-marcum
Copy link
Copy Markdown
Contributor

No description provided.

@kyle-marcum kyle-marcum force-pushed the fe/feature/RI-5152_rdi-instances branch 3 times, most recently from 8d7e84d to 9f0e7d8 Compare December 11, 2023 20:47
@kyle-marcum kyle-marcum force-pushed the fe/feature/RI-5152_rdi-instances branch from 9f0e7d8 to be6cc6a Compare December 11, 2023 21:04
.search {
&:global(.euiFieldSearch) {
border: none !important;
background-color: #171717 !important;
Copy link
Copy Markdown
Contributor

@rsergeenko rsergeenko Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, use variable (Check, also, please other places and the light theme)

}

.moreInfoPanel {
background-color: #2B2B2B !important;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same

import { classToClass } from 'src/utils';

// mock data
let mockRdiInstances: Rdi[] = [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess better remove it. You can use it for development. What do use think ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the mock here but left the mock request when clicking the Rdi Instance header button to exercise adding RDI Instances so that they also can be deleted.

* @inheritDoc
*/
public async list(): Promise<Rdi[]> {
const entities = await this.repository
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And restore this part

* @inheritDoc
*/
public async create(rdi: Rdi): Promise<Rdi> {
const entity = classToClass(RdiEntity, rdi);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better do not mock anything?

public async delete(id: string): Promise<void> {
await this.repository.delete(id);
public async delete(ids: string[]): Promise<void> {
mockRdiInstances = mockRdiInstances.filter((instance) => !ids.includes(instance.id));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@kyle-marcum kyle-marcum force-pushed the fe/feature/RI-5152_rdi-instances branch from 9cc2405 to 945719a Compare December 14, 2023 23:09
Copy link
Copy Markdown
Contributor

@AmirAllayarovSofteq AmirAllayarovSofteq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@kyle-marcum kyle-marcum merged commit ee02edd into feature/RI-4616-rdi-support Dec 15, 2023
@kyle-marcum kyle-marcum deleted the fe/feature/RI-5152_rdi-instances branch December 15, 2023 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants