mis-builder icon indicating copy to clipboard operation
mis-builder copied to clipboard

[16.0][FIX] mis_builder: correctly compute context in mis_report_widget

Open IT-Ideas opened this issue 2 years ago • 12 comments

This PR ensures that the context used by the mis_report_widget widget RPC calls is correctly computed.

Previously using the mis_analytic_domain context key was useless as not taken into account in the widget.

IT-Ideas avatar Nov 15 '23 18:11 IT-Ideas

Hi @sbidoul, some modules you are maintaining are being modified, check this out!

OCA-git-bot avatar Nov 15 '23 18:11 OCA-git-bot

This seems to break the filter. On runboat, I tried this filter with the demo report

image

And I got this error

image

The same works on 16.0

sbidoul avatar Nov 15 '23 19:11 sbidoul

This seems to break the filter. On runboat, I tried this filter with the demo report

image

And I got this error

image

The same works on 16.0

Oops Indeed I forgot to return the Domain as a list and not as an ast Domain.

IT-Ideas avatar Nov 15 '23 20:11 IT-Ideas

@sbidoul it should be ok now 🙂

IT-Ideas avatar Nov 17 '23 06:11 IT-Ideas

Yes, I tested, this works fine now.

Wondering if the search bar widget is capable of loading and displaying the value from the context.

sbidoul avatar Nov 17 '23 08:11 sbidoul

Yes, I tested, this works fine now.

Wondering if the search bar widget is capable of loading and displaying the value from the context.

I'll have a look and also about the fact that the filters would be returned to this view when modified on the drilldown one. I am wondering whether we could use the globalstate in order to achieve this but I need a bit more of research. Or in another PR? Let me know 🙂

IT-Ideas avatar Nov 17 '23 09:11 IT-Ideas

This can be another PR, no urgency.

sbidoul avatar Nov 17 '23 09:11 sbidoul

@sbidoul Actually, the domain cannot be displayed as this does not correspond to a filter, but if filters are set in the context we should indeed use them. I do not know if it is the case. I'll have a look.

IT-Ideas avatar Nov 17 '23 09:11 IT-Ideas

Rebased

IT-Ideas avatar Dec 27 '23 13:12 IT-Ideas

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Sep 08 '24 12:09 github-actions[bot]

Hi @sbidoul, some modules you are maintaining are being modified, check this out!

OCA-git-bot avatar Oct 13 '24 15:10 OCA-git-bot