-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] saved object tagging #83197
[Maps] saved object tagging #83197
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great to see tagging implemented in another app!
Some comments:
Could you update your feature to add the tag
SO read permission. Else a user would not be able to properly use tags when he's only granted permissions to see map
kibana/x-pack/plugins/maps/server/plugin.ts
Lines 173 to 177 in e909cee
features.registerKibanaFeature({ | |
id: APP_ID, | |
name: i18n.translate('xpack.maps.featureRegistry.mapsFeatureName', { | |
defaultMessage: 'Maps', | |
}), |
See
kibana/x-pack/plugins/features/server/oss_features.ts
Lines 89 to 91 in d4b2a51
savedObject: { | |
all: ['visualization', 'query', 'lens'], | |
read: ['index-pattern', 'search', 'tag'], |
Could you update the RBAC integration tests to add a new map
user
See
kibana/x-pack/test/saved_object_tagging/api_integration/security_and_spaces/apis/create.ts
Lines 60 to 61 in d4b2a51
USERS.DEFAULT_SPACE_DASHBOARD_READ_USER, | |
USERS.DEFAULT_SPACE_VISUALIZE_READ_USER, |
and
kibana/x-pack/test/saved_object_tagging/common/lib/authentication.ts
Lines 178 to 182 in d4b2a51
DEFAULT_SPACE_VISUALIZE_READ_USER: { | |
username: 'a_kibana_rbac_default_space_visualize_read_user', | |
password: 'password', | |
roles: [ROLES.KIBANA_RBAC_DEFAULT_SPACE_VISUALIZE_READ_USER.name], | |
}, |
(Optional) Could you add a FTR test for tag integration within map
As it is done for dash and vis in x-pack/test/saved_object_tagging/functional/tests/dashboard_integration.ts
and x-pack/test/saved_object_tagging/functional/tests/visualize_integration.ts
🥳 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app arch code changes LGTM
Add
Added RBAC integration test for map read only user
Added functional test for maps integration testing listing, create, and edit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once these two points are addressed
x-pack/test/saved_object_tagging/api_integration/security_and_spaces/apis/create.ts
Show resolved
Hide resolved
…t_all, and update tests
@elasticmachine merge upstream |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
* add tag selector to save modal * save tag references onSave * populate tags when unwrapping attributes * tslint * update listing page to show tags * fix data-test-subj id in functional tests * i18n cleanup * tslint * remove unused import * use listingTable service for functional tests * tslint and fix mvt grid layer functional test * review feedback * add tags to all privileges and add test user to find, delete, get, get_all, and update tests * move functions to module scope Co-authored-by: Kibana Machine <[email protected]>
* [Maps] saved object tagging (#83197) * add tag selector to save modal * save tag references onSave * populate tags when unwrapping attributes * tslint * update listing page to show tags * fix data-test-subj id in functional tests * i18n cleanup * tslint * remove unused import * use listingTable service for functional tests * tslint and fix mvt grid layer functional test * review feedback * add tags to all privileges and add test user to find, delete, get, get_all, and update tests * move functions to module scope Co-authored-by: Kibana Machine <[email protected]> * mappings.json * add map saved object mapping Co-authored-by: Kibana Machine <[email protected]>
Closes #82434
This PR adds saved object tagging to listing page and save modal