fix ActivityStream button at details page #15286
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
fixes bug:
/details
page for any item (host, project, schedule, etc.) and clicking on the Activity Stream button at the top right:** there is not shown an Activity Stream specific to the item, but a general Activity Stream for the item category (schedules, templates, hosts, projects, inventories, etc.)
This PR adds a
item__id=N
to the Activity Stream button's URL from/details
. Like:host__id=2
orcredential__id=13
orproject__id=5
, etc. - thus filtering to the specific item's ActivityStream.(for 03771872)
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION
I'm sorry, I could not find a shorter way to fix this - resulting in a rather big PR. If you could spot a better way for fixing it, let me know, and I'll be happy to discuss and rework the code. Thank you.
Ran npm tests, passed.