Skip to content

Commit

Permalink
Merge branch 'minor'
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Oct 12, 2021
2 parents dd28a9d + e2f799c commit 6c14782
Show file tree
Hide file tree
Showing 299 changed files with 9,114 additions and 1,931 deletions.
56 changes: 56 additions & 0 deletions CHANGELOG_NEXT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
## 1.3.0-beta.1 (2021-10-08)


#### Features

* **admin-ui** Add empty option for nullable custom field selects ([894ca4a](https://github.com/vendure-ecommerce/vendure/commit/894ca4a)), closes [#1083](https://github.com/vendure-ecommerce/vendure/issues/1083)
* **admin-ui** Display pending search index updates in product list ([6f4a89f](https://github.com/vendure-ecommerce/vendure/commit/6f4a89f)), closes [#1137](https://github.com/vendure-ecommerce/vendure/issues/1137)
* **admin-ui** Display retry data in job list ([9c544bf](https://github.com/vendure-ecommerce/vendure/commit/9c544bf))
* **core** Add DB-based buffer storage support to DefaultJobQueuePlugin ([f26ad4b](https://github.com/vendure-ecommerce/vendure/commit/f26ad4b)), closes [#1137](https://github.com/vendure-ecommerce/vendure/issues/1137)
* **core** Allow DefaultJobQueue retries to be configured per queue ([5017622](https://github.com/vendure-ecommerce/vendure/commit/5017622)), closes [#1111](https://github.com/vendure-ecommerce/vendure/issues/1111)
* **core** Create buffering logic for DefaultSearchPlugin ([6a47dcf](https://github.com/vendure-ecommerce/vendure/commit/6a47dcf)), closes [#1137](https://github.com/vendure-ecommerce/vendure/issues/1137)
* **core** Create JobBuffer infrastructure ([d6aa20f](https://github.com/vendure-ecommerce/vendure/commit/d6aa20f)), closes [#1137](https://github.com/vendure-ecommerce/vendure/issues/1137)
* **core** Expose `nullable` property of CustomFieldConfig ([9ec6b90](https://github.com/vendure-ecommerce/vendure/commit/9ec6b90)), closes [#1083](https://github.com/vendure-ecommerce/vendure/issues/1083)
* **core** Expose `withTransaction` method on TransactionalConnection ([861ef29](https://github.com/vendure-ecommerce/vendure/commit/861ef29)), closes [#1129](https://github.com/vendure-ecommerce/vendure/issues/1129)
* **core** Expose pending search index updates operations in Admin API ([53a1943](https://github.com/vendure-ecommerce/vendure/commit/53a1943)), closes [#1137](https://github.com/vendure-ecommerce/vendure/issues/1137)
* **core** Expose retry data on Job type in Admin API ([4b15ef4](https://github.com/vendure-ecommerce/vendure/commit/4b15ef4))
* **core** Make password hashing strategy configurable ([e5abab0](https://github.com/vendure-ecommerce/vendure/commit/e5abab0)), closes [#1063](https://github.com/vendure-ecommerce/vendure/issues/1063)
* **elasticsearch-plugin** Support search index job batching ([f3fb298](https://github.com/vendure-ecommerce/vendure/commit/f3fb298)), closes [#1137](https://github.com/vendure-ecommerce/vendure/issues/1137)
* **job-queue-plugin** Allow config of retries/backoff for BullMQ ([9fda858](https://github.com/vendure-ecommerce/vendure/commit/9fda858)), closes [#1111](https://github.com/vendure-ecommerce/vendure/issues/1111)
* **job-queue-plugin** Implement Redis-based job buffering ([c7b91c3](https://github.com/vendure-ecommerce/vendure/commit/c7b91c3))

#### Fixes

* **core** Correct cancellation logic with custom Order process ([b8448c1](https://github.com/vendure-ecommerce/vendure/commit/b8448c1)), closes [#1104](https://github.com/vendure-ecommerce/vendure/issues/1104)
* **core** Correctly calculate job duration for pending/retrying jobs ([73fa278](https://github.com/vendure-ecommerce/vendure/commit/73fa278))
* **core** Fix error when resolving deleted Product from Order ([511f04d](https://github.com/vendure-ecommerce/vendure/commit/511f04d)), closes [#1125](https://github.com/vendure-ecommerce/vendure/issues/1125)
* **create** Correct escaping of quotes in templates ([9537245](https://github.com/vendure-ecommerce/vendure/commit/9537245))
* **job-queue-plugin** Close redis connection on destroy ([64ebdd1](https://github.com/vendure-ecommerce/vendure/commit/64ebdd1))
* **job-queue-plugin** Correctly filter BullMQ jobs by isSettled ([2f24a33](https://github.com/vendure-ecommerce/vendure/commit/2f24a33))
* **job-queue-plugin** More accurate determination of BullMQ job state ([3b3bb3b](https://github.com/vendure-ecommerce/vendure/commit/3b3bb3b))

## 1.3.0-beta.0 (2021-09-30)


#### Features

* **admin-ui** Add admin-ui Portuguese (Portugal) translation (#1069) ([81d9836](https://github.com/vendure-ecommerce/vendure/commit/81d9836)), closes [#1069](https://github.com/vendure-ecommerce/vendure/issues/1069)
* **admin-ui** Improve facet filtering for product search input ([43f0adb](https://github.com/vendure-ecommerce/vendure/commit/43f0adb)), closes [#1078](https://github.com/vendure-ecommerce/vendure/issues/1078)
* **admin-ui** Use server pagination of product variants ([552eafe](https://github.com/vendure-ecommerce/vendure/commit/552eafe)), closes [#1110](https://github.com/vendure-ecommerce/vendure/issues/1110)
* **core** Add config for enabling/disabling worker health check ([f620566](https://github.com/vendure-ecommerce/vendure/commit/f620566)), closes [#1112](https://github.com/vendure-ecommerce/vendure/issues/1112)
* **core** Add Product.variantList field ([438ac46](https://github.com/vendure-ecommerce/vendure/commit/438ac46)), closes [#1110](https://github.com/vendure-ecommerce/vendure/issues/1110)
* **core** Implement EntityHydrator to simplify working with entities ([28e6a3a](https://github.com/vendure-ecommerce/vendure/commit/28e6a3a)), closes [#1103](https://github.com/vendure-ecommerce/vendure/issues/1103)
* **core** Make entity cache ttl values configurable ([a05e7ab](https://github.com/vendure-ecommerce/vendure/commit/a05e7ab)), closes [#988](https://github.com/vendure-ecommerce/vendure/issues/988)
* **core** Make event bus subscriptions transaction-safe ([f0fd662](https://github.com/vendure-ecommerce/vendure/commit/f0fd662)), closes [#1107](https://github.com/vendure-ecommerce/vendure/issues/1107) [#520](https://github.com/vendure-ecommerce/vendure/issues/520)
* **core** Remove all long-lived in-memory state, use short-TTL caching ([d428ffc](https://github.com/vendure-ecommerce/vendure/commit/d428ffc))

#### Fixes

* **core** Fix transaction-related issues with in-memory caching ([d35306f](https://github.com/vendure-ecommerce/vendure/commit/d35306f))

#### Perf

* **core** Simplify hot DB query for active order ([fa563f2](https://github.com/vendure-ecommerce/vendure/commit/fa563f2))
* **core** Use memoization when caching zone members ([54dfbf4](https://github.com/vendure-ecommerce/vendure/commit/54dfbf4)), closes [#988](https://github.com/vendure-ecommerce/vendure/issues/988)
* **core** Use per-request caching for hot ProductVariant paths ([214b86b](https://github.com/vendure-ecommerce/vendure/commit/214b86b)), closes [#988](https://github.com/vendure-ecommerce/vendure/issues/988)
* **core** Use request cache for hot-path tax rate calculation ([9e22e8b](https://github.com/vendure-ecommerce/vendure/commit/9e22e8b))
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"packages/*"
],
"version": "1.2.3",
"version": "1.3.0-beta.1",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"docs:update-build-info": "ts-node scripts/docs/update-build-info.ts",
"docs:build": "yarn docs:generate-graphql-docs && yarn docs:generate-typescript-docs && yarn docs:update-build-info",
"codegen": "tsc -p scripts/codegen/plugins && ts-node scripts/codegen/generate-graphql-types.ts",
"version": "yarn check-imports && yarn check-angular-versions && yarn build && yarn check-core-type-defs && yarn generate-changelog && git add CHANGELOG.md && git add */version.ts",
"version": "yarn check-imports && yarn check-angular-versions && yarn build && yarn check-core-type-defs && yarn generate-changelog && git add CHANGELOG* && git add */version.ts",
"dev-server:start": "cd packages/dev-server && yarn start",
"test": "lerna run test --stream --no-bail",
"e2e": "lerna run e2e --stream --no-bail",
Expand All @@ -26,7 +26,7 @@
"check-angular-versions": "ts-node scripts/check-angular-versions.ts",
"generate-changelog": "ts-node scripts/changelogs/generate-changelog.ts",
"publish-release": "lerna publish -m \"chore: Publish %s\" --no-push --force-publish",
"publish-prerelease": "lerna publish -m \"chore: Pre-release %s\" preminor --no-push --force-publish --preid beta --dist-tag next --registry=http://localhost:4873",
"publish-prerelease": "lerna publish -m \"chore: Pre-release %s\" prerelease --no-push --force-publish --preid beta --dist-tag next",
"publish-local": "lerna version --no-git-tag-version && cd scripts && ./publish-to-verdaccio.sh"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/admin-ui-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vendure/admin-ui-plugin",
"version": "1.2.3",
"version": "1.3.0-beta.1",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
Expand All @@ -21,8 +21,8 @@
"devDependencies": {
"@types/express": "^4.17.8",
"@types/fs-extra": "^9.0.1",
"@vendure/common": "^1.2.3",
"@vendure/core": "^1.2.3",
"@vendure/common": "^1.3.0-beta.1",
"@vendure/core": "^1.3.0-beta.1",
"express": "^4.17.1",
"rimraf": "^3.0.2",
"typescript": "4.3.5"
Expand Down
49 changes: 27 additions & 22 deletions packages/admin-ui/i18n-coverage.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,71 @@
{
"generatedOn": "2021-09-10T15:42:48.058Z",
"lastCommit": "e6eb674ae85e596bd9644911d20bc6c50ca10bc1",
"generatedOn": "2021-10-07T12:23:24.068Z",
"lastCommit": "0eadedef0bfaacd2838befc67f75c14a5e7a6606",
"translationStatus": {
"cs": {
"tokenCount": 623,
"tokenCount": 627,
"translatedCount": 591,
"percentage": 95
"percentage": 94
},
"de": {
"tokenCount": 623,
"tokenCount": 627,
"translatedCount": 570,
"percentage": 91
},
"en": {
"tokenCount": 623,
"translatedCount": 623,
"tokenCount": 627,
"translatedCount": 626,
"percentage": 100
},
"es": {
"tokenCount": 623,
"tokenCount": 627,
"translatedCount": 623,
"percentage": 100
"percentage": 99
},
"fr": {
"tokenCount": 623,
"tokenCount": 627,
"translatedCount": 613,
"percentage": 98
},
"it": {
"tokenCount": 623,
"tokenCount": 627,
"translatedCount": 621,
"percentage": 100
"percentage": 99
},
"pl": {
"tokenCount": 623,
"tokenCount": 627,
"translatedCount": 405,
"percentage": 65
},
"pt_BR": {
"tokenCount": 623,
"tokenCount": 627,
"translatedCount": 588,
"percentage": 94
},
"pt_PT": {
"tokenCount": 627,
"translatedCount": 622,
"percentage": 99
},
"ru": {
"tokenCount": 623,
"tokenCount": 627,
"translatedCount": 621,
"percentage": 100
"percentage": 99
},
"uk": {
"tokenCount": 623,
"tokenCount": 627,
"translatedCount": 621,
"percentage": 100
"percentage": 99
},
"zh_Hans": {
"tokenCount": 623,
"tokenCount": 627,
"translatedCount": 558,
"percentage": 90
"percentage": 89
},
"zh_Hant": {
"tokenCount": 623,
"tokenCount": 627,
"translatedCount": 385,
"percentage": 62
"percentage": 61
}
}
}
4 changes: 2 additions & 2 deletions packages/admin-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vendure/admin-ui",
"version": "1.2.3",
"version": "1.3.0-beta.1",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down Expand Up @@ -39,7 +39,7 @@
"@ng-select/ng-select": "^7.2.0",
"@ngx-translate/core": "^13.0.0",
"@ngx-translate/http-loader": "^6.0.0",
"@vendure/common": "^1.2.3",
"@vendure/common": "^1.3.0-beta.1",
"@webcomponents/custom-elements": "^1.4.3",
"apollo-angular": "^2.4.0",
"apollo-upload-client": "^14.1.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/admin-ui/src/lib/catalog/src/catalog.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
createResolveData,
detailBreadcrumb,
FacetWithValues,
ProductWithVariants,
GetProductWithVariants,
} from '@vendure/admin-ui/core';
import { map } from 'rxjs/operators';

Expand Down Expand Up @@ -112,7 +112,7 @@ export const catalogRoutes: Route[] = [
];

export function productBreadcrumb(data: any, params: any) {
return detailBreadcrumb<ProductWithVariants.Fragment>({
return detailBreadcrumb<GetProductWithVariants.Product>({
entity: data.entity,
id: params.id,
breadcrumbKey: 'breadcrumb.products',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ export class AssignProductsToChannelDialogComponent implements OnInit, Dialog<an

for (let i = 0; i < this.productIds.length && variants.length < take; i++) {
const productVariants = await this.dataService.product
.getProduct(this.productIds[i])
.getProduct(this.productIds[i], { take: this.isProductVariantMode ? undefined : take })
.mapSingle(({ product }) => {
const _variants = product ? product.variants : [];
const _variants = product ? product.variantList.items : [];
return _variants.filter(v =>
this.isProductVariantMode ? this.productVariantIds?.includes(v.id) : true,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@
</vdr-ab-right>
</vdr-action-bar>

<form
class="form"
[formGroup]="detailForm"
*ngIf="product$ | async as product"
>
<form class="form" [formGroup]="detailForm" *ngIf="product$ | async as product">
<button type="submit" hidden x-data="prevents enter key from triggering other buttons"></button>
<clr-tabs>
<clr-tab>
Expand Down Expand Up @@ -111,7 +107,7 @@
/>
<label>{{
'catalog.auto-update-product-variant-name' | translate
}}</label>
}}</label>
</clr-checkbox-wrapper>
</div>
<vdr-form-field
Expand Down Expand Up @@ -225,9 +221,24 @@ <h4>{{ 'catalog.product-variants' | translate }}</h4>
</a>
</div>

<div class="pagination-row mt4" *ngIf="10 < (paginationConfig$ | async)?.totalItems">
<vdr-items-per-page-controls
[itemsPerPage]="itemsPerPage$ | async"
(itemsPerPageChange)="setItemsPerPage($event)"
></vdr-items-per-page-controls>

<vdr-pagination-controls
[id]="(paginationConfig$ | async)?.id"
[currentPage]="currentPage$ | async"
[itemsPerPage]="itemsPerPage$ | async"
(pageChange)="setPage($event)"
></vdr-pagination-controls>
</div>

<vdr-product-variants-table
*ngIf="variantDisplayMode === 'table'"
[variants]="variants$ | async"
[paginationConfig]="paginationConfig$ | async"
[optionGroups]="product.optionGroups"
[channelPriceIncludesTax]="channelPriceIncludesTax$ | async"
[productVariantsFormArray]="detailForm.get('variants')"
Expand All @@ -236,6 +247,7 @@ <h4>{{ 'catalog.product-variants' | translate }}</h4>
<vdr-product-variants-list
*ngIf="variantDisplayMode === 'card'"
[variants]="variants$ | async"
[paginationConfig]="paginationConfig$ | async"
[channelPriceIncludesTax]="channelPriceIncludesTax$ | async"
[facets]="facets$ | async"
[optionGroups]="product.optionGroups"
Expand All @@ -253,6 +265,19 @@ <h4>{{ 'catalog.product-variants' | translate }}</h4>
(selectFacetValueClick)="selectVariantFacetValue($event)"
></vdr-product-variants-list>
</section>
<div class="pagination-row mt4" *ngIf="10 < (paginationConfig$ | async)?.totalItems">
<vdr-items-per-page-controls
[itemsPerPage]="itemsPerPage$ | async"
(itemsPerPageChange)="setItemsPerPage($event)"
></vdr-items-per-page-controls>

<vdr-pagination-controls
[id]="(paginationConfig$ | async)?.id"
[currentPage]="currentPage$ | async"
[itemsPerPage]="itemsPerPage$ | async"
(pageChange)="setPage($event)"
></vdr-pagination-controls>
</div>
</clr-tab-content>
</clr-tab>
</clr-tabs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ vdr-action-bar clr-toggle-wrapper {
margin-bottom: 12px;
}
}

.pagination-row {
display: flex;
align-items: baseline;
justify-content: space-between;
}
Loading

0 comments on commit 6c14782

Please sign in to comment.