Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into uat
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Sep 9, 2024
2 parents 3970de5 + 404310a commit 933320f
Show file tree
Hide file tree
Showing 42 changed files with 2,585 additions and 1,710 deletions.
3 changes: 0 additions & 3 deletions .dockerignore

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:

server:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

services:
redis:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.10'

- run: |
sudo apt-get update
Expand All @@ -59,7 +59,7 @@ jobs:

client:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

defaults:
run:
Expand All @@ -72,6 +72,6 @@ jobs:
with:
node-version: '14.x'

- run: npm ci
- run: npm ci --verbose

- run: npm run build
8 changes: 0 additions & 8 deletions CHANGELOG.md

This file was deleted.

69 changes: 0 additions & 69 deletions DEVSETUP.md

This file was deleted.

56 changes: 0 additions & 56 deletions Dockerfile

This file was deleted.

1 change: 1 addition & 0 deletions client/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/node_modules
14 changes: 14 additions & 0 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:14

RUN useradd -ms /bin/sh -u 1001 app
USER app

WORKDIR /opt/client
COPY package.json package-lock.json ./
RUN npm ci

COPY --chown=app:app . /opt/client

RUN npm run build

CMD ["npm", "run", "start"]
4 changes: 2 additions & 2 deletions client/extensions/auto-tagger/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ export function toClientFormat(response: IServerResponse): OrderedMap<string, IT
let tags = OrderedMap<string, ITagUi>();

response.subject?.forEach((item) => {

const {name, description, qcode, source, altids, aliases, original_source, parent, scheme, relevance, creator} = item;

// Checking if the item has original_source to filter auto tagger tags
if (original_source != null) {

if (scheme === 'http://cv.iptc.org/newscodes/mediatopic/' || scheme === 'subject') {
const tag: ITagUi = {
name,
Expand All @@ -67,7 +69,6 @@ export function toClientFormat(response: IServerResponse): OrderedMap<string, IT
relevance,
creator,
};

tags = tags.set(tag.qcode, tag);
} else {
const tag: ITagUi = {
Expand All @@ -86,7 +87,6 @@ export function toClientFormat(response: IServerResponse): OrderedMap<string, IT
relevance,
creator,
};

tags = tags.set(tag.qcode, tag);
}
}
Expand Down
Loading

0 comments on commit 933320f

Please sign in to comment.