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

Block content and Blocking Embedded media #1190

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
01df8d1
Create the Lockhart feature (#1169)
marwoodandrew Jul 13, 2023
8a11583
fix remove stray style on body (#1170)
marwoodandrew Jul 17, 2023
c2ed383
fix logging download endpoints route gets confused by storage folders…
marwoodandrew Jul 18, 2023
753c7f3
Add the audio icon in the wirelist if required (#1172)
marwoodandrew Jul 18, 2023
7a6d6a3
fix api, logging urls on search/news response (#1173)
marwoodandrew Jul 27, 2023
a6266b1
Add 360 logo (#1174)
marwoodandrew Jul 27, 2023
7e75c57
fix(ci): Use superdesk/hotfix/1.33.17 to fix build issues (#1178)
MarkLark86 Aug 10, 2023
3cddb9f
SDAN-721 Stories with embed codes can kill the home page card display…
marwoodandrew Aug 10, 2023
3f26da3
SDAN-722 Remove embeds from monitoring email (#1176)
marwoodandrew Aug 10, 2023
4847ea3
Fix crash on empty association due to kill (#1177)
marwoodandrew Aug 10, 2023
69fb324
fix embeds in body breaks all pages (#1179)
marwoodandrew Dec 14, 2023
59fde73
fix cursor traversal when indexing (#1180)
marwoodandrew Dec 14, 2023
ff632eb
Remove embeds from selected downloads (#1181)
marwoodandrew Dec 14, 2023
ab8d973
Fix timeouts on related coverage (#1182)
marwoodandrew Dec 14, 2023
096fad4
fix handling of additional monitoring email address (#1184)
marwoodandrew Feb 13, 2024
5b4e71c
update version for the https://sofab.atlassian.net/browse/SDAN-726
rbi-aap Apr 9, 2024
d2ebb0d
update for fix building error
rbi-aap Apr 9, 2024
beae01e
update for building error
rbi-aap Apr 9, 2024
d9f036c
update for review
rbi-aap Apr 9, 2024
c3217fe
update from review feedback regarding naming convention from audioIf …
rbi-aap Apr 11, 2024
b19a074
update for review
rbi-aap Apr 11, 2024
6433e61
remove space
rbi-aap Apr 11, 2024
41fcac4
remove space line
rbi-aap Apr 11, 2024
c19c2ee
check user authorization on api calls - backport from newsroom-core (…
marwoodandrew Apr 23, 2024
fa2a2b8
SDAN-726. Add the media icons (video, audio) to the home page dashboa…
rbi-aap Apr 23, 2024
72f4876
Merge branch 'superdesk:lockhart' into lockhart
rbi-aap May 31, 2024
5f58d87
syndicate API. including RSS and ATOM formatter
rbi-aap May 31, 2024
43eb8c0
update style
rbi-aap May 31, 2024
cf5bcfa
split the 125 long line
rbi-aap Jun 3, 2024
391cf09
keep same name
rbi-aap Jun 3, 2024
a968773
update for review and feedback
rbi-aap Jun 7, 2024
9fa50f7
update for line long issues
rbi-aap Jun 7, 2024
f341ed5
for line long
rbi-aap Jun 7, 2024
165cc8a
for orderdict error in test
rbi-aap Jun 7, 2024
73a0b14
for behave test
rbi-aap Jun 7, 2024
fcf0f01
update
rbi-aap Jun 7, 2024
6a36641
add regular expression in route for avoid conflicts with old API
rbi-aap Jun 11, 2024
87c3098
update for the review
rbi-aap Jul 15, 2024
c3be21b
update for review
rbi-aap Jul 17, 2024
b826fb4
update for review
rbi-aap Jul 17, 2024
d473ed1
front-end with block-content of Blocking Embedded Media of over upd…
rbi-aap Jul 24, 2024
1080560
backend for review for block content
rbi-aap Jul 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions .github/workflows/tests-py38.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: "CI"

on:
[push, pull_request]

jobs:

server-py-38:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: docker-compose
run: docker-compose -f .actions-docker-compose.yml up -d

- name: cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('dev-requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip
${{ runner.os }}-

- name: pip install
run: |
python -m pip install --upgrade pip wheel setuptools
pip install -r dev-requirements.txt

- name: flake8
run: flake8

- name: pytest
run: pytest --ignore=tests/aap/ --disable-pytest-warnings --cov=newsroom

- name: behave
run: behave --format progress2 --logging-level=ERROR

client-node-14:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: setup node
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: cache npm
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm
${{ runner.os }}-

- name: npm ci
run: npm ci

- name: lint
run: npm run lint

- name: test
run: npm run test

- name: build
run: npm run build
10 changes: 7 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:

jobs:

server:
runs-on: ubuntu-latest
server-py-36:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
Expand All @@ -19,6 +19,10 @@ jobs:
- name: docker-compose
run: docker-compose -f .actions-docker-compose.yml up -d

- run: |
sudo apt-get update
sudo apt-get install pkg-config libxml2-dev libxmlsec1-dev libxmlsec1-openssl

- name: cache pip
uses: actions/cache@v2
with:
Expand All @@ -42,7 +46,7 @@ jobs:
- name: behave
run: behave --format progress2 --logging-level=ERROR

client:
client-node-12:
runs-on: ubuntu-latest

steps:
Expand Down
25 changes: 11 additions & 14 deletions assets/companies/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,17 @@ export function postCompany() {

};
}

export function savePermissions(company, permissions) {
return function (dispatch) {
return server.postWithCsrfToken(`/companies/${company._id}/permissions`, permissions)
.then(() => {
notify.success(gettext('Company updated successfully'));
dispatch(fetchProducts());
dispatch(fetchCompanies());
})
.catch((error) => errorHandler(error, dispatch, setError));
};
}

/**
* Fetches products
Expand All @@ -137,19 +147,6 @@ export function fetchProducts() {
* Save permissions for a company
*
*/
export function savePermissions(company, permissions) {
return function (dispatch) {
return server.post(`/companies/${company._id}/permissions`, permissions)
.then(() => {
notify.success(gettext('Company updated successfully'));
dispatch(fetchProducts());
dispatch(fetchCompanies());
})
.catch((error) => errorHandler(error, dispatch, setError));
};
}


/**
* Deletes a company
*
Expand Down
Loading