[
https://issues.apache.org/jira/browse/ISIS-1719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16169775#comment-16169775
]
ASF subversion and git services commented on ISIS-1719:
-------------------------------------------------------
Commit bf056704a3b4d839887750a2a6073db76ad741dc in isis's branch
refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=bf05670 ]
ISIS-1719: fires events while installing fixtures
(for QueryResultsCache to listen to).
> QueryResultsCache should be disable when running fixture scripts.
> -----------------------------------------------------------------
>
> Key: ISIS-1719
> URL: https://issues.apache.org/jira/browse/ISIS-1719
> Project: Isis
> Issue Type: Improvement
> Affects Versions: 1.15.0
> Reporter: Dan Haywood
> Assignee: Dan Haywood
> Priority: Minor
> Fix For: 1.15.1
>
>
> This is currently done if invoked via the FixtureScripts menu service, but
> not automatically for integration tests.
> Suggest that this can be disabled, in case it starts breaking tests for folk.
> see (IsisSessionFactory):
> {code}
> @Programmatic
> public void constructServices() {
> ...
> //
> // installFixturesIfRequired
> //
> final FixturesInstallerFromConfiguration fixtureInstaller =
> new FixturesInstallerFromConfiguration(this);
> fixtureInstaller.installFixtures();
> ...
>
> }
> {code}
> and (in FixtureScriptsDefault):
> {code}
> public List<FixtureResult> runFixtureScript(
> final FixtureScript fixtureScript,
> @ParameterLayout(
> named = "Parameters",
> describedAs =
> "Script-specific parameters (if any). The format
> depends on the script implementation (eg key=value, CSV, JSON, XML etc)",
> multiLine = 10)
> @Parameter(optionality = Optionality.OPTIONAL)
> final String parameters) {
> try {
> eventBusService.post(new FixturesInstallingEvent(this));
> return super.runFixtureScript(fixtureScript, parameters);
> } finally {
> eventBusService.post(new FixturesInstalledEvent(this));
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)