Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Refactor integration manager handling into a common place #3301

Merged
merged 4 commits into from
Aug 13, 2019

Conversation

turt2live
Copy link
Member

It was already in a common place, but this is the boilerplate for supporting multiple integration managers, and multiple integration manager sources.

For element-hq/element-web#4913 / element-hq/element-web#10161

It was already in a common place, but this is the boilerplate for supporting multiple integration managers, and multiple integration manager sources. 

For element-hq/element-web#4913 / element-hq/element-web#10161
@turt2live turt2live requested a review from a team August 9, 2019 22:14
Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

otherwise lgtm

import {IntegrationManagerInstance} from "./IntegrationManagerInstance";

export class IntegrationManagers {
static _instance;
Copy link
Member

Choose a reason for hiding this comment

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

I think this has the same problem as module-level variables: you'll get a different instance if you ever access this from a file in riot-web.

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess I should test it :|

can we just rewrite it all in a language that doesn't do dumb things?

Copy link
Member Author

Choose a reason for hiding this comment

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

the riot-web layer explodes when it sees the flow imports...

}

openNoManagerDialog(): void {
// TODO: Is it Integrations (plural) or Integration (singular). Singular is easier spoken.
Copy link
Collaborator

@jryans jryans Aug 13, 2019

Choose a reason for hiding this comment

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

I feel like we typically say "integration manager", and grammatically I think it makes sense that a "thing manager" would manage multiple things, so let's try to standardise around "integration manager".

Copy link
Member Author

Choose a reason for hiding this comment

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

I am unbelievably appreciative of this comment. I'm going to go delete a bunch of extraneous s's now.

@turt2live turt2live merged commit 831da69 into develop Aug 13, 2019
@turt2live turt2live deleted the travis/integs/base branch August 13, 2019 15:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants