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

Maps catalog page #4994

Merged
merged 2 commits into from
Mar 10, 2020
Merged

Maps catalog page #4994

merged 2 commits into from
Mar 10, 2020

Conversation

vlt1
Copy link
Contributor

@vlt1 vlt1 commented Mar 6, 2020

Description

Adds new plugin MapCatalog that is a list of maps available to the user. Supports delete, editing properties, sharing.

P.S. As I understand it, this plugin is for usage in georchestra, so i didn't include it in localConfig.
P.S.S. After this is merged a separate pr should be submitted to georchestra that updates MapStore and adds this plugin to list of plugins and localConfig there.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

mapstore2-georchestra/#59

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

@vlt1 vlt1 self-assigned this Mar 6, 2020
@coveralls
Copy link

coveralls commented Mar 6, 2020

Coverage Status

Coverage decreased (-0.08%) to 83.768% when pulling 4619fe1 on vlt1:maps-catalog into d189d5a on geosolutions-it:master.

@offtherailz offtherailz self-requested a review March 9, 2020 09:29
Copy link
Member

@offtherailz offtherailz left a comment

Choose a reason for hiding this comment

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

  • Please add unit tests (changes on existing enhancers, your epics and missing react/redux stuff
  • document the reducer (only one property)
  • Please make this plugin available in context creation tool (with proper dependencies and localization) The icon have to be created.

const loadMoreStream = (initialStream$, loadMore$, loadPage, {dataProp = "items", throttleTime = 500} = {}) =>
initialStream$.switchMap(searchParams =>
const loadMoreStream = (initialStream$, loadMore$, loadPage, {dataProp = "items", initialStreamDebounce = 0, throttleTime = 500} = {}) =>
initialStream$.take(1).concat(initialStream$.debounceTime(initialStreamDebounce)).switchMap(searchParams =>
Copy link
Member

Choose a reason for hiding this comment

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

can you explain the reason this take + concat change? Maybe a comment can help understanding it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It makes the first initialStream event to be executed instantly regardless of the initialStreamDebounce value. This is useful because the first event is dispatched when a dialog, a panel, etc. with infinite scroll is opened, debounce is not needed there.

@offtherailz
Copy link
Member

@allyoucanmap should provide the icon for the new plugin

@offtherailz
Copy link
Member

offtherailz commented Mar 9, 2020

the one on the map, please compare with dev instance and ping me as soon as is ready so it can be merged.

@offtherailz offtherailz merged commit 820e193 into geosolutions-it:master Mar 10, 2020
@offtherailz offtherailz added this to the 2020.02.00 milestone Mar 10, 2020
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