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

Bump bokeh to 3.1.0dev4 #4479

Merged
merged 4 commits into from
Feb 28, 2023
Merged

Bump bokeh to 3.1.0dev4 #4479

merged 4 commits into from
Feb 28, 2023

Conversation

philippjfr
Copy link
Member

No description provided.

@philippjfr philippjfr changed the title Bk 3.1.0dev4 Bump bokeh to 3.1.0dev4 Feb 28, 2023
@codecov
Copy link

codecov bot commented Feb 28, 2023

Codecov Report

Merging #4479 (7c8abc7) into main (97875fc) will increase coverage by 8.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #4479      +/-   ##
==========================================
+ Coverage   74.12%   82.20%   +8.08%     
==========================================
  Files         243      243              
  Lines       35321    35320       -1     
==========================================
+ Hits        26181    29035    +2854     
+ Misses       9140     6285    -2855     
Flag Coverage Δ
ui-tests 35.78% <100.00%> (?)
unitexamples-tests 74.10% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
panel/tests/ui/widgets/test_tabulator.py 98.06% <100.00%> (+88.56%) ⬆️
panel/io/reload.py 71.73% <0.00%> (-2.18%) ⬇️
panel/io/cache.py 84.97% <0.00%> (-0.43%) ⬇️
panel/io/state.py 70.29% <0.00%> (-0.35%) ⬇️
panel/param.py 86.66% <0.00%> (+0.15%) ⬆️
panel/widgets/input.py 95.38% <0.00%> (+0.20%) ⬆️
panel/pane/base.py 89.43% <0.00%> (+0.33%) ⬆️
panel/io/callbacks.py 78.83% <0.00%> (+0.72%) ⬆️
panel/reactive.py 79.45% <0.00%> (+0.80%) ⬆️
panel/util/__init__.py 87.55% <0.00%> (+0.88%) ⬆️
... and 27 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

export class DOMEvent extends ModelEvent {
event_name: string = "dom_event"
publish: boolean = true
Copy link
Collaborator

Choose a reason for hiding this comment

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

Both should be prototype members, not instance members, though that also works. In bokehjs we use a decorator to make sure this is set up properly:

import {event} from "@bokehjs/core/bokeh_events"

@event("dom_event")
export class DOMEvent extends ModelEvent {
  ...
}

Alternatively one can use this:

export class DOMEvent extends ModelEvent {
  static {
    this.prototype.event_name = "dom_event"
    this.prototype.publish = true
  }
}

I will make a change, so that publish = true is actually the default, regardless how a event is defined.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will fix this in another PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Fixed in bokeh/bokeh#12871.

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.

2 participants