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

backend: endpoint for creating a filtered view #372

Closed
teosarca opened this issue May 13, 2017 · 1 comment
Closed

backend: endpoint for creating a filtered view #372

teosarca opened this issue May 13, 2017 · 1 comment

Comments

@teosarca
Copy link
Member

teosarca commented May 13, 2017

At the moment, when the frontend filters a view, it simply calls "POST /rest/api/documentView/{windowId}" (like when it creates any other new view) and provides the filters in request body.

The problem with that is backend is not aware the new view is actually an already existing view but filtered.
We would need this information because backend shall preserve things like internal filters (aka sticky filters) .

So, we shall have a new endpoint, i.e. "POST /rest/api/documentView/{windowId}/{viewId}/filter" which shall create a new view, based on previous one (identified by path variables windowId and viewId) and which shall be filtered by the filters provided in request body.

Required for #364

Frontend task

metasfresh/metasfresh-webui-frontend-legacy#740

Note to IT

Case 1

Case 2

@teosarca teosarca added this to the 2017-20 milestone May 13, 2017
teosarca added a commit to metasfresh/metasfresh that referenced this issue May 13, 2017
When parameter value is null, the parameter shall be removed.

metasfresh/metasfresh-webui-api-legacy#372
teosarca added a commit that referenced this issue May 13, 2017
MAJOR DocumentFilter(s) refactoring

#372
@metas-lc metas-lc self-assigned this May 15, 2017
@metas-lc
Copy link

IT

  1. open a view, e.g. Sales Order (window/143)
  2. try filtering by different criterias (date, date+time, string, id )
    => works
  3. open the document, go to referenced documents, open invoice/material receipt/material receipt candidates
    => correct window opens
  4. filter there too
    => filter is applied only on those documents you seen at step 3, which are already filtered (a filter on a filter)

metas-ts added a commit to metasfresh/metasfresh that referenced this issue May 18, 2017
[#743](metasfresh/metasfresh-webui-frontend-legacy#743) modal panel: background looks a bit ugly
[#377](metasfresh/metasfresh-webui-api-legacy#377) Don't show zoom-to for non-zoom reference Lists
[#366](metasfresh/metasfresh-webui-api-legacy#366) Make Permission change active without server cache reset
[#372](metasfresh/metasfresh-webui-api-legacy#372) backend: endpoint for creating a filtered view
[#1521](#1521) standard database: add SSCC attribute to "DIM_Barcode_Attributes" dimension spec
[#1517](#1517) intern: refactor LanguageDAO and LanguageBL
[#369](metasfresh/metasfresh-webui-api-legacy#369) adding role to user does not work
[#679](metasfresh/metasfresh-webui-frontend-legacy#679) Record selection behavior w/ browser back/ forward
[#707](metasfresh/metasfresh-webui-frontend-legacy#707) Page popup shall be closed when clicking o a page
[#715](metasfresh/metasfresh-webui-frontend-legacy#715) KPI widgets shall have the same height
[#732](metasfresh/metasfresh-webui-frontend-legacy#732) issue not opening on single document
[#734](metasfresh/metasfresh-webui-frontend-legacy#734) included view: don't reset when closing an error notification
[#362](metasfresh/metasfresh-webui-api-legacy#362) Add filters in Handling Units window
[#363](metasfresh/metasfresh-webui-api-legacy#363) make LU not mandatory in Receive HUs
[#364](metasfresh/metasfresh-webui-api-legacy#364) Replace HU editor's Barcode quick action with Barcode filter
[#370](metasfresh/metasfresh-webui-api-legacy#370) Avoid spamming the console with "Connection refused" when elasticsearch connection is not available

me-45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants