@kapeta/local-cluster-service 0.54.5 → 0.54.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [0.54.6](https://github.com/kapetacom/local-cluster-service/compare/v0.54.5...v0.54.6) (2024-06-21)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* dont run codegen after moving block to dest folder ([#186](https://github.com/kapetacom/local-cluster-service/issues/186)) ([f0f4a36](https://github.com/kapetacom/local-cluster-service/commit/f0f4a363c32c20074fbf9aa333f87ceada4a81a2))
|
7
|
+
|
1
8
|
## [0.54.5](https://github.com/kapetacom/local-cluster-service/compare/v0.54.4...v0.54.5) (2024-06-21)
|
2
9
|
|
3
10
|
|
@@ -117,7 +117,9 @@ router.post('/block/create', async (req, res) => {
|
|
117
117
|
overwrite: true,
|
118
118
|
});
|
119
119
|
}
|
120
|
-
|
120
|
+
// Create asset without running codegen if the asset already exists
|
121
|
+
const shouldCodegen = !isExisting;
|
122
|
+
const [asset] = await assetManager_1.assetManager.createAsset(ymlPath, createRequest.definition, 'user', shouldCodegen);
|
121
123
|
res.send(asset);
|
122
124
|
}
|
123
125
|
catch (err) {
|
@@ -117,7 +117,9 @@ router.post('/block/create', async (req, res) => {
|
|
117
117
|
overwrite: true,
|
118
118
|
});
|
119
119
|
}
|
120
|
-
|
120
|
+
// Create asset without running codegen if the asset already exists
|
121
|
+
const shouldCodegen = !isExisting;
|
122
|
+
const [asset] = await assetManager_1.assetManager.createAsset(ymlPath, createRequest.definition, 'user', shouldCodegen);
|
121
123
|
res.send(asset);
|
122
124
|
}
|
123
125
|
catch (err) {
|
package/package.json
CHANGED
package/src/storm/routes.ts
CHANGED
@@ -153,7 +153,9 @@ router.post('/block/create', async (req: KapetaBodyRequest, res: Response) => {
|
|
153
153
|
overwrite: true,
|
154
154
|
});
|
155
155
|
}
|
156
|
-
|
156
|
+
// Create asset without running codegen if the asset already exists
|
157
|
+
const shouldCodegen = !isExisting;
|
158
|
+
const [asset] = await assetManager.createAsset(ymlPath, createRequest.definition, 'user', shouldCodegen);
|
157
159
|
res.send(asset);
|
158
160
|
} catch (err: any) {
|
159
161
|
res.status(500).send({ error: err.message });
|