Skip to content
Snippets Groups Projects

feat(pluginevents): add dispatching event onsearch on map click (MIN-296)

Merged mateusz-winiarczyk requested to merge MIN-296-clicking-map-search-event into development
1 unresolved thread

Piotr reported that clicking on the map should also trigger the onSearch listener.

Data to dispatch:

If type Alias:

  • type: 'bioEntity'
  • searchResults schema: [{ "id": 18904, "modelId": 52, "type": "ALIAS" }]
  • results schema: [bioEntityContents]

If type Reaction:

  • type: 'bioEntity'
  • searchResults schema: [{ "id": 18904, "modelId": 52, "type": "REACTION" }]
  • results schema: [bioEntityContents]

onsearch-click-map

Closes MIN-296

Edited by mateusz-winiarczyk

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
16 17 isPerfectMatch: true
17 18 }),
18 19 )
19 .unwrap().then(() => {
20 .unwrap().then((bioEntityContents) => {
21
22 PluginsEventBus.dispatchEvent('onSearch', {
23 type: 'bioEntity',
24 searchValues: [closestSearchResult],
25 results: [bioEntityContents],
26 });
  • LGTM, 1 RFC

  • Adrian Orłów mentioned in commit a4563456

    mentioned in commit a4563456

  • merged

  • Adrian Orłów mentioned in commit 525ba2b3

    mentioned in commit 525ba2b3

  • Adrian Orłów mentioned in merge request !149 (closed)

    mentioned in merge request !149 (closed)

  • Please register or sign in to reply
    Loading