cuba-platform / fts

Full-Text Search Addon
https://www.cuba-platform.com/
Apache License 2.0
4 stars 1 forks source link

Design-time roles are not indexed #77

Closed lovtsovaik closed 3 years ago

lovtsovaik commented 3 years ago

Environment

Platform version: 7.2.9 Documentation: https://doc.cuba-platform.com/fts-7.2/fts.html

Description of the bug or enhancement

  1. Clone and open project https://github.com/cuba-platform/sample-library-cuba7
  2. Update CUBA version (CUBA-Project properties - set Platform version = '7.2.9')
  3. Add the Full Text Search add-on if not active
  4. Run the application
  5. Login (admin/admin)
  6. Enable full-text search functionality:
    • open Administration → Application properties in the application main menu
    • set the current value of fts.enabled property to true
  7. Log out and log in again
  8. Start indexing:
    • open the Administration → JMX Console
    • inspect the app-core.fts:type=FtsManager JMX bean
    • invoke reindexAll()
    • invoke processQueue()
  9. Open the Administration → Roles page and find any word from the table, e.g. "minimal"
  10. Input the word into the text search field above the logout button and click the search icon.
  11. Create your own role
  12. Repeat 8-10 steps

ER

FTS works correctly with any roles

AR

FTS works with run-time roles:

But it doesn't work with design-time roles:

lovtsovaik commented 3 years ago

This behavior is correct.