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

Services dynamically add their component if they have one in the relevant registry #925

Closed
wants to merge 2 commits into from

Conversation

kebeclibre
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Jun 7, 2021

@kebeclibre kebeclibre force-pushed the master-wowl-service-their-comps-lpe branch 3 times, most recently from c889209 to bc2915a Compare June 7, 2021 13:13

const { EventBus } = owl.core;

export const popoverService = {
start() {
let nextId = 0;
/**
Copy link

Choose a reason for hiding this comment

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

why did you move the docstring?

@kebeclibre kebeclibre force-pushed the master-wowl-service-their-comps-lpe branch 3 times, most recently from 5685a95 to 544c6c3 Compare June 8, 2021 08:01
@kebeclibre kebeclibre force-pushed the master-wowl-service-their-comps-lpe branch 7 times, most recently from dfc5f12 to 8ae952b Compare June 9, 2021 08:55
@aab-odoo
Copy link

aab-odoo commented Jun 9, 2021

robodoo rebase-ff r+

@robodoo
Copy link

robodoo commented Jun 9, 2021

Merge method set to rebase and fast-forward

@kebeclibre kebeclibre force-pushed the master-wowl-service-their-comps-lpe branch 5 times, most recently from ee7ad7e to 39c1faa Compare June 11, 2021 13:58
@@ -1,22 +1,18 @@
/** @odoo-module **/

import { registry } from "../registry";
import { useService } from "../service_hook";
import { Notification as NotificationComponent } from "./notification";

Choose a reason for hiding this comment

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

no need to rename it, no?

@ged-odoo
Copy link

robodoo r+

@robodoo
Copy link

robodoo commented Jun 11, 2021

Unable to stage PR ({"message":"Merge conflict","documentation_url":"https://docs.github.com/rest/reference/repos#merge-a-branch"})

Some services are coupled with a Component. Usually the service
handles the state of the system, and the Component displays or uses it.

To enable the communication between the service and the component
while making it private, the services should add themselves their
Component in the relevant registry, with the proper means of communication
passed in props.

This mechanism relies on c1d49d4
@ged-odoo ged-odoo force-pushed the master-wowl-service-their-comps-lpe branch from 39c1faa to 46b3576 Compare June 12, 2021 05:44
@ged-odoo
Copy link

robodoo retry r+

@robodoo
Copy link

robodoo commented Jun 12, 2021

I'm sorry, @ged-odoo. Retry makes no sense when the PR is not in error.

@robodoo robodoo closed this Jun 12, 2021
aab-odoo pushed a commit that referenced this pull request Jun 14, 2021
closes #925

Related: odoo-dev/enterprise#166
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 15, 2021
closes #925

Related: odoo-dev/enterprise#166
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 15, 2021
closes #925

Related: odoo-dev/enterprise#166
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 16, 2021
closes #925

Related: odoo-dev/enterprise#166
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 16, 2021
closes #925

Related: odoo-dev/enterprise#166
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 17, 2021
closes #925

Related: odoo-dev/enterprise#166
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 17, 2021
closes #925

Related: odoo-dev/enterprise#166
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 18, 2021
closes #925

Related: odoo-dev/enterprise#166
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 18, 2021
closes #925

Related: odoo-dev/enterprise#166
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
aab-odoo pushed a commit that referenced this pull request Jun 18, 2021
closes #925

Related: odoo-dev/enterprise#166
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants