Skip to content

Commit 2c0662f

Browse files
committed
Merge branch 'develop'
2 parents dc73a46 + 04f641b commit 2c0662f

File tree

14 files changed

+39
-153
lines changed

14 files changed

+39
-153
lines changed

.github/pull_request_template.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,9 @@ Please provide screenshots / animations for any change that involves the UI. Ple
3030

3131
Please describe how to test and/or verify your changes. Provide instructions so we can reproduce. Please also provide relevant test data as necessary. These instructions will be used for QA testing below.
3232

33-
- [ ] Test A
34-
- [ ] Test B
33+
- Test A
34+
- Test B
3535

3636
## qa.languageforge.org testing
3737

38-
Testers: Check the box and put in a date/time to sign-off/attest the feature works as expected on qa.languageforge.org
39-
40-
- [ ] Tester1 (YYYY-MM-DD HH:MM)
41-
- [ ] Tester2 (YYYY-MM-DD HH:MM)
38+
Testers should add his/her findings to end of the PR in a comment and include screenshots, files, etc that are beneficial.

.github/workflows/build-and-publish-adhoc.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/build-and-publish-base-php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
IMAGE: sillsdev/web-languageforge:base-php
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717

1818
- name: Build and tag base image
1919
run: docker build -t ${{ env.IMAGE }} -f docker/base-php/Dockerfile .
2020

2121
- name: Log in to Docker Hub
22-
uses: docker/login-action@v1
22+
uses: docker/login-action@v2
2323
with:
2424
username: ${{ secrets.DOCKERHUB_USERNAME }}
2525
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}

.github/workflows/build-and-publish-next.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/integrate-and-deploy.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
-
37-
uses: actions/checkout@v2
37+
uses: actions/checkout@v3
3838
-
3939
run: |
4040
docker --version
@@ -43,17 +43,18 @@ jobs:
4343
name: Establish image name
4444
id: image
4545
run: |
46-
echo ::set-output name=NAMESPACE::sillsdev/web-languageforge
47-
echo ::set-output name=TAG_APP::${{ inputs.image-tag-app }}
48-
echo ::set-output name=TAG_PROXY::${{ inputs.image-tag-proxy }}
49-
echo ::set-output name=TAG_NEXT_APP::${{ inputs.image-tag-next-app }}
50-
echo ::set-output name=LFMERGE_NAMESPACE::ghcr.io/sillsdev/lfmerge
46+
echo "NAMESPACE=sillsdev/web-languageforge" >> $GITHUB_OUTPUT
47+
echo "TAG_APP=${{ inputs.image-tag-app }}" >> $GITHUB_OUTPUT
48+
echo "TAG_PROXY=${{ inputs.image-tag-proxy }}" >> $GITHUB_OUTPUT
49+
echo "TAG_NEXT_APP=${{ inputs.image-tag-next-app }}" >> $GITHUB_OUTPUT
50+
echo "LFMERGE_NAMESPACE=ghcr.io/sillsdev/lfmerge" >> $GITHUB_OUTPUT
51+
5152
# Get LfMerge tag from Dockerfile, fallback to "latest" as default if that fails
5253
TAG_LFMERGE=$(head -n 1 docker/lfmerge/Dockerfile | cut -d: -f2)
5354
TAG_LFMERGE=${TAG_LFMERGE:-latest}
54-
echo ::set-output name=TAG_LFMERGE::${TAG_LFMERGE}
55+
echo "TAG_LFMERGE=${TAG_LFMERGE}" >> $GITHUB_OUTPUT
5556
-
56-
uses: actions/setup-node@v2
57+
uses: actions/setup-node@v3
5758
with:
5859
node-version: '16.14.0'
5960
cache: 'npm'
@@ -78,7 +79,7 @@ jobs:
7879
# npx playwright test
7980
-
8081
name: Log in to Docker Hub
81-
uses: docker/login-action@v1
82+
uses: docker/login-action@v2
8283
with:
8384
username: ${{ secrets.image-repo-username }}
8485
password: ${{ secrets.image-repo-password }}

.github/workflows/pull-request.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,34 @@ jobs:
1717

1818
steps:
1919
-
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v3
2121
-
2222
name: Unit Tests
2323
run: make unit-tests-ci
2424
-
2525
name: Publish Test Results
26-
uses: docker://ghcr.io/enricomi/publish-unit-test-result-action:v1
26+
uses: docker://ghcr.io/enricomi/publish-unit-test-result-action:v2
2727
if: always()
2828
with:
2929
check_name: Unit Test Results
3030
github_token: ${{ github.token }}
31-
files: PhpUnitTests.xml
31+
junit_files: PhpUnitTests.xml
3232

3333
build-app-run-e2e-tests:
3434
runs-on: ubuntu-latest
3535

3636
steps:
3737
-
38-
uses: actions/checkout@v2
38+
uses: actions/checkout@v3
3939
-
40-
uses: actions/setup-node@v2
40+
uses: actions/setup-node@v3
4141
with:
4242
node-version: '16.14.0'
4343
cache: 'npm'
4444
-
4545
name: Get installed Playwright version
4646
id: playwright-version
47-
# https://github.com/microsoft/playwright/issues/7249#issuecomment-1201476980
48-
run: echo -n "::set-output name=version::$(npm ls @playwright/test --json | jq --raw-output '.dependencies["@playwright/test"].version')"
49-
50-
# https://github.com/microsoft/playwright/issues/7249#issuecomment-1154603556
47+
run: echo -n "version=$(npm ls @playwright/test --json | jq --raw-output '.version')" >> $GITHUB_OUTPUT
5148
-
5249
name: Cache playwright browsers
5350
uses: actions/cache@v3
@@ -67,7 +64,7 @@ jobs:
6764
-
6865
name: Upload test results
6966
if: always()
70-
uses: actions/upload-artifact@v2
67+
uses: actions/upload-artifact@v3
7168
with:
7269
name: test-results
7370
path: test-results
@@ -76,9 +73,9 @@ jobs:
7673
runs-on: ubuntu-latest
7774
steps:
7875
-
79-
uses: actions/checkout@v2
76+
uses: actions/checkout@v3
8077
-
81-
uses: actions/setup-node@v2
78+
uses: actions/setup-node@v3
8279
with:
8380
node-version: "16.14.0"
8481
cache: "npm"
@@ -91,7 +88,7 @@ jobs:
9188

9289
# steps:
9390
# -
94-
# uses: actions/checkout@v2
91+
# uses: actions/checkout@v3
9592
# -
9693
# name: Build app
9794
# run: make build

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ clean:
8181

8282
.PHONY: clean-powerwash
8383
clean-powerwash: clean
84+
npx rimraf *storageState.json test-results
8485
docker system prune -f --volumes
85-
docker rmi -f `docker images -q "lf-*"`
86-
docker image rm sillsdev/web-languageforge:base-php
86+
- docker rmi -f `docker images -q "lf-*"` sillsdev/web-languageforge:base-php
8787
docker builder prune -f

docker-compose.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ services:
191191
command: sh -c "postconf -e 'default_transport = retry:no outbound email allowed' && /run.sh"
192192

193193
db:
194-
image: mongo:4.2
194+
image: mongo:4.4
195195
container_name: lf-db
196196
ports:
197197
# exposed this to host for admin tools
@@ -248,8 +248,8 @@ services:
248248
dockerfile: docker/test-e2e/Dockerfile
249249
args:
250250
- ENVIRONMENT=development
251-
image: test-e2e
252-
container_name: test-e2e
251+
image: lf-test-e2e
252+
container_name: lf-test-e2e
253253
depends_on:
254254
- db
255255
- app-for-e2e
@@ -276,8 +276,8 @@ services:
276276
app-for-e2e:
277277
build:
278278
dockerfile: docker/app-for-e2e/Dockerfile
279-
image: app-for-e2e
280-
container_name: app-for-e2e
279+
image: lf-app-for-e2e
280+
container_name: lf-app-for-e2e
281281
platform: linux/amd64
282282
depends_on:
283283
- db
@@ -333,8 +333,8 @@ services:
333333
test-php:
334334
build:
335335
dockerfile: docker/test-php/Dockerfile
336-
image: test-php
337-
container_name: test-php
336+
image: lf-test-php
337+
container_name: lf-test-php
338338
depends_on:
339339
- db
340340
- mail

docker/deployment/db-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
spec:
5050
containers:
5151
- name: db
52-
image: mongo:4.2
52+
image: mongo:4.4
5353
# https://kubernetes.io/docs/concepts/configuration/manage-resources-containers
5454
resources:
5555
requests:

src/Site/views/languageforge/container/languageforge.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<span>My Projects</span>
3232
<i class="fa fa-bars"></i>
3333
</a>
34-
<div class="dropdown-menu dropdown-menu-right" uib-dropdown-menu id="myProjectDropdownMenu" aria-labelledby="myProjectDropdown">
34+
<div class="dropdown-menu dropdown-menu-right" uib-dropdown-menu id="myProjectDropdownMenu" aria-labelledby="myProjectDropdown" style="max-height: 80vh; overflow-y: auto">
3535
{% verbatim %}
3636
<div data-ng-switch="$ctrl.projectTypesBySite().length" data-ng-show="$ctrl.rights.canCreateProject">
3737
<div data-ng-switch-when="1">

src/angular-app/bellows/shared/pick-list-editor.component.html

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
<option value="">(no default)</option>
77
</select>
88
</div>
9-
<div class="row">
10-
<div class="col-12 clearfix">
11-
<div class="input-group">
12-
<input class="form-control" id="new-value" data-ng-model="$ctrl.newValue" data-on-enter="$ctrl.pickAddItem()" name="newValue"
13-
type="text" placeholder="new value" no-dirty-check>
14-
<span class="input-group-btn">
15-
<a class="btn btn-primary add-item-to-list" href data-ng-click="$ctrl.pickAddItem()">
16-
<i class="fa fa-plus iconPadding" aria-hidden="true"></i>Add to List</a>
17-
</span>
18-
</div>
19-
</div>
20-
</div>
21-
<br>
229
<div class="row">
2310
<div class="col-12 clearfix" drag-to-reorder-bind="$ctrl.items">
2411
<div data-ng-repeat="item in $ctrl.items" class="picklist-group" dtr-draggable>

src/angular-app/bellows/shared/pick-list-editor.module.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ export class PickListEditorController implements angular.IController {
2525
}
2626
}
2727

28-
pickAddItem(): void {
29-
if (this.newValue) {
30-
const key = PickListEditorController.keyFromValue(this.newValue);
31-
this.items.push({ key, value: this.newValue });
32-
this.isDeletable[key] = true;
33-
this.newValue = undefined;
34-
}
35-
}
3628

3729
pickRemoveItem(index: number): void {
3830
delete this.isDeletable[this.items[index].key];

src/angular-app/languageforge/lexicon/lexicon-app.component.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -167,29 +167,16 @@ export class LexiconAppController implements angular.IController {
167167
(document.querySelectorAll('nav.navbar-expand')[1] as HTMLElement).style.backgroundColor = backgroundColorB;
168168
}
169169

170-
let offlineMessageId: string;
171170
Offline.on('up', () => {
172171
setTitle('Language Forge', '', '');
173172

174-
if (this.online === false) {
175-
this.notice.removeById(offlineMessageId);
176-
this.notice.push(this.notice.SUCCESS, 'You are back online!');
177-
}
178173

179-
this.online = true;
180174
this.$scope.$digest();
181175
});
182176

183177
Offline.on('down', () => {
184178
setTitle('Language Forge Offline', '#555', '#777');
185-
offlineMessageId = this.notice.push(this.notice.ERROR, 'You are offline. Some features are not available', null,
186-
true, 5 * 1000);
187-
this.online = false;
188-
if (!/^\/editor\//.test(this.$location.path())) {
189179
// redirect to the editor
190-
this.$location.path('/editor');
191-
this.notice.push(this.notice.SUCCESS, 'The dictionary editor is available offline. Settings are not.');
192-
}
193180

194181
this.$scope.$digest();
195182
});

src/angular-app/languageforge/lexicon/settings/configuration/configuration-option-lists.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
<div class="col-md-9">
1919
<div class="card card-body bg-light settings-panel" id="picklistEditorFieldset">
2020
<h3 class="col-form-label">{{$ctrl.olcOptionListsDirty[$ctrl.currentListIndex].name}}</h3>
21-
<i>(At this time {{$ctrl.olcOptionListsDirty[$ctrl.currentListIndex].name}} items cannot be deleted)</i>
21+
<div style="padding: 10px">
22+
<small>To add or remove items from this list, please use FieldWorks (FLEx).</small>
23+
</div>
2224
<div class="controls">
2325
<picklist-editor items="$ctrl.olcOptionListsDirty[$ctrl.currentListIndex].items"></picklist-editor>
2426
</div>

0 commit comments

Comments
 (0)