Skip to content
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

Traceability for easy triggers #511

Merged
merged 1 commit into from
Jul 5, 2024
Merged

Traceability for easy triggers #511

merged 1 commit into from
Jul 5, 2024

Conversation

xpdota
Copy link
Owner

@xpdota xpdota commented Jul 5, 2024

Adds "sourceEasyTrigger" to the parameters for callouts from easy triggers, the value of which is the actual EasyTrigger instance that caused the callout.

Also adds a right click -> go to easy trigger option for callout events.

Example of how you can use a script to map up easy trigger callouts to their easy trigger names:

rawEventStorage.getEventsOfType(ProcessedCalloutEvent).collectEntries {
	def vars = it.parent.arguments
	def source = vars['sourceEasyTrigger']
	if (source == null) {
		return []
	}
	else {
		return ["${source.name}": "${it.ttsText}"]
	}
}

Copy link
Contributor

github-actions bot commented Jul 5, 2024

Once this branch successfully builds, you will be able to try the branch out for yourself by changing the "branch" in your updater to "easy-trigger-tracking" (without the quotes).
This setting can be found under the "Updates" tab.

Don't forget to change back when you are done testing. You should reset your branch either to 'stable' for normal releases, or 'master' for beta builds.

@xpdota xpdota merged commit 8f5f45f into master Jul 5, 2024
3 checks passed
@xpdota xpdota deleted the easy-trigger-tracking branch July 5, 2024 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant