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

[FEATURE] Sapui5MavenSnapshotResolver: Expose cacheMode parameter through all APIs #607

Merged
merged 3 commits into from May 4, 2023

Conversation

RandomByte
Copy link
Member

This allows consumers to control the cache behavior when using
SNAPSHOT versions

…rough all APIs

This allows consumers to control the cache behavior when using
SNAPSHOT versions.

Also, remove unused 'resolverConfig' option from ui5Framework
@coveralls
Copy link

coveralls commented Apr 28, 2023

Coverage Status

Coverage: 95.772% (-0.04%) from 95.815% when pulling 9f0072b on add-resolver-cache-mode-param into 1f0a408 on main.

@RandomByte RandomByte force-pushed the add-resolver-cache-mode-param branch from ee0358b to fafa114 Compare April 28, 2023 14:24
lib/graph/graph.js Outdated Show resolved Hide resolved
lib/graph/helpers/ui5Framework.js Outdated Show resolved Hide resolved
lib/ui5Framework/Sapui5MavenSnapshotResolver.js Outdated Show resolved Hide resolved
test/lib/graph/graph.integration.js Outdated Show resolved Hide resolved
test/lib/graph/graph.js Outdated Show resolved Hide resolved
test/lib/graph/helpers/ui5Framework.js Outdated Show resolved Hide resolved
@@ -93,14 +95,16 @@ export async function graphFromPackageDependencies({
* Configuration file to use for the root module instead the default ui5.yaml. Either a path relative to
* <code>cwd</code> or an absolute path. In both case, platform-specific path segment separators must be used.
* @param {string} [options.versionOverride] Framework version to use instead of the one defined in the root project
* @param {module:@ui5/project/ui5Framework/maven/CacheMode} [options.cacheMode]
* Cache mode to use when consuming SNAPSHOT versions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -143,14 +147,16 @@ export async function graphFromStaticFile({
* Configuration file to use for the root module instead the default ui5.yaml. Either a path relative to
* <code>cwd</code> or an absolute path. In both case, platform-specific path segment separators must be used.
* @param {string} [options.versionOverride] Framework version to use instead of the one defined in the root project
* @param {module:@ui5/project/ui5Framework/maven/CacheMode} [options.cacheMode]
* Cache mode to use when consuming SNAPSHOT versions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -177,7 +178,7 @@ test.serial("enrichProjectGraph: without framework configuration", async (t) =>

test.serial("enrichProjectGraph SNAPSHOT", async (t) => {
const {sinon, ui5Framework, utils, Sapui5MavenSnapshotResolverInstallStub} = t.context;
process.env.UI5_MAVEN_SNAPSHOT_ENDPOINT = "__url__";
process.env.UI5_MAVEN_SNAPSHOT_ENDPOINT_URL = "__url__";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this even required within this test? I wonder why it didn't fail before, as the variable has been renamed already.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@RandomByte RandomByte changed the title [INTERNAL] Sapui5MavenSnapshotResolver: Expose cacheMode parameter through all APIs [FEATURE] Sapui5MavenSnapshotResolver: Expose cacheMode parameter through all APIs May 4, 2023
@RandomByte RandomByte merged commit 78eb482 into main May 4, 2023
16 checks passed
@RandomByte RandomByte deleted the add-resolver-cache-mode-param branch May 4, 2023 08:19
RandomByte added a commit to SAP/ui5-cli that referenced this pull request Jun 2, 2023
Expose cache-mode API parameter via CLI. See also:
SAP/ui5-project#607
RandomByte added a commit to SAP/ui5-cli that referenced this pull request Jun 5, 2023
Expose cache-mode API parameter via CLI. See also:
SAP/ui5-project#607
RandomByte added a commit to SAP/ui5-cli that referenced this pull request Jun 5, 2023
Expose cache-mode API parameter via CLI. See also:
SAP/ui5-project#607

---------

Co-authored-by: Günter Klatt <57760635+KlattG@users.noreply.github.com>
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.

None yet

4 participants