Table: Fix rowOrderChanged exception

rowOrderChanged event contains null entries -> the array of rowIds is
bigger than excepted -> JS throws exception "Row order may not be
updated because lengths of the arrays differ."

Reason: The null entries come from filtered rows which don't have a row
id. Due to the flag ignoreAccepted, isRowAccepted is not executed which
is wrong for this case.

Another issue: If the filter is added and removed in the same request,
the delete event will be generated anyway even though the filter has
already been removed.

Solution: The flag ignoreAccepted feels like a hack and and may not work
in every situation. To remove the hack and solve the issues, following
steps are taken:

1. Don't convert the filter_changed at the time of occurrence, convert
it before sending the response to the client. This solves the issue with
the add and remove filter in the same request.
2. Move the delete event to the beginning. This makes the flag
ignoreAccepted unnecessary.
3. Move the cleanup of events before an insert event from table event
buffer to json table. This cleanup is only necessary for the filter
conversion because row events may normally only be fired after the row
has been inserted -> Does not solve a new issue, just solves it in
another way (see JsonTableTest.testRemoveRowFilterAfterUpdates)

177932
178211
7 files changed
tree: 520ba05462cd90b9cdd8987104e3fb116496cbb9
  1. license_files/
  2. org.eclipse.scout.dev.jetty/
  3. org.eclipse.scout.dev.jetty.test/
  4. org.eclipse.scout.dev.jetty.test.affix/
  5. org.eclipse.scout.jaxws.apt/
  6. org.eclipse.scout.json/
  7. org.eclipse.scout.rt/
  8. org.eclipse.scout.rt-settings/
  9. org.eclipse.scout.rt.client/
  10. org.eclipse.scout.rt.client.test/
  11. org.eclipse.scout.rt.platform/
  12. org.eclipse.scout.rt.platform.test/
  13. org.eclipse.scout.rt.server/
  14. org.eclipse.scout.rt.server.commons/
  15. org.eclipse.scout.rt.server.commons.test/
  16. org.eclipse.scout.rt.server.jaxws/
  17. org.eclipse.scout.rt.server.jaxws.test/
  18. org.eclipse.scout.rt.server.jdbc/
  19. org.eclipse.scout.rt.server.jdbc.test/
  20. org.eclipse.scout.rt.server.jms/
  21. org.eclipse.scout.rt.server.test/
  22. org.eclipse.scout.rt.serverbridge/
  23. org.eclipse.scout.rt.shared/
  24. org.eclipse.scout.rt.shared.test/
  25. org.eclipse.scout.rt.svg.client/
  26. org.eclipse.scout.rt.svg.client.test/
  27. org.eclipse.scout.rt.svg.ui.html/
  28. org.eclipse.scout.rt.team-project-set/
  29. org.eclipse.scout.rt.ui.html/
  30. org.eclipse.scout.rt.ui.html.scriptprocessor/
  31. org.eclipse.scout.rt.ui.html.scriptprocessor.test/
  32. org.eclipse.scout.rt.ui.html.test/
  33. shell_scripts/
  34. .gitattributes
  35. .gitignore
  36. .gitreview
  37. CONTRIBUTING.md
  38. pom.xml
  39. README.md
README.md

Eclipse Scout - RT

[Eclipse Scout] 1 is a mature and open framework for modern, service oriented business applications. It substantially boosts developer productivity and is simple to learn.

This Repository Eclipse Scout RT contains the source for the runtime components embedded in the applications build on top of the Eclipse Scout Framework.

Downloads

The content of this repository is build on the Eclipse infrastructure and the different versions are available on several [P2 Update Sites] 2.

The easiest way to start with Eclipse Scout is to download Eclipse for Scout Developers Eclipse for Scout Developers on the [Eclipse downloads page] 3.

Documentation & Links

  • [Eclipse Scout Wiki] 4
  • [Eclipse Scout Forum] 5
  • [Eclipse Bugzilla] 6 (Product=Scout; Component=Scout)

Contribution Guidelines

We welcome any kind of contributions (Bug report, documentation, code contribution...). Please read the [Eclipse Scout Contribution page] 7 to know more about it.

The contribution process of Eclipse Scout is hosted on tools deployed by the Eclipse Foundation (involing [Bugzilla] 6, Gerrit, Hudson, MediaWiki...).

External tools like the GitHub tracker and pull requests are not supported.

Get in Touch

To get in touch with the Eclipse Scout community, please open a thread in the [Eclipse Scout Forum] 5 or send a mail to [our mailing list] 8: scout-dev@eclipse.org

License

[Eclipse Public License (EPL) v1.0] 9