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

syndicate API including currently RSS and ATOM formatter API #1188

Open
wants to merge 63 commits into
base: lockhart
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 61 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
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
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
520fb03
for block-content SDAN-728 and SDAN-731
rbi-aap Jul 26, 2024
31a2437
for sync
rbi-aap Jul 26, 2024
dca96c4
replace await with promise
rbi-aap Jul 26, 2024
e5e4d15
for review
rbi-aap Jul 26, 2024
bc4ca05
for style
rbi-aap Jul 26, 2024
6d1803d
update after unit test for review
rbi-aap Aug 2, 2024
5ae6bd9
update for flake8
rbi-aap Aug 2, 2024
996dfe6
update for review
rbi-aap Aug 2, 2024
5fad329
for unit test
rbi-aap Aug 2, 2024
8bc3bc9
for test only
rbi-aap Aug 2, 2024
a46d813
temp turn off test_bookmarks test not relavant to content block
rbi-aap Aug 2, 2024
7200041
test
rbi-aap Aug 2, 2024
706d14d
test
rbi-aap Aug 6, 2024
750035a
for mock get_user in test
rbi-aap Aug 6, 2024
724c74c
for front end
rbi-aap Aug 30, 2024
d326f8d
ArticleBodyHTML.jsx -add XSS attach prevent and video player improvement
rbi-aap Aug 30, 2024
abe2ad0
update incorrect icon
rbi-aap Aug 30, 2024
4ccdc0b
update for env
rbi-aap Sep 2, 2024
68bd3d2
update
rbi-aap Sep 2, 2024
67a48d6
for env update
rbi-aap Sep 2, 2024
980c47e
for env change
rbi-aap Sep 2, 2024
b847be9
update env
rbi-aap Sep 2, 2024
565b8de
update
rbi-aap Sep 2, 2024
ef16577
update
rbi-aap Sep 2, 2024
f2e546b
update
rbi-aap Sep 2, 2024
141d3e9
update for old failed test
rbi-aap Sep 3, 2024
ae47ffc
update for a test
rbi-aap Sep 3, 2024
5bcacde
update for check
rbi-aap Sep 3, 2024
3ec72ba
change user type
rbi-aap Sep 3, 2024
80a288a
update for feature test
rbi-aap Sep 3, 2024
7204aee
block_media
rbi-aap Sep 3, 2024
49c403f
update for unit_test block_media
rbi-aap Sep 3, 2024
aaa1e17
update a few features near to release
rbi-aap Sep 3, 2024
a1d2243
lint check for indent
rbi-aap Sep 3, 2024
8d7a608
Enhanced video loading and poster management, updated Webpack and pac…
rbi-aap Sep 10, 2024
f1ee3c5
for update the ESLint for webpack and React
rbi-aap Sep 10, 2024
bb82ebe
for images.js to manage images in Webpack
rbi-aap Sep 10, 2024
1019cb7
for review update
rbi-aap Sep 13, 2024
61e88d5
remove memory monitoring function in live repo
rbi-aap Sep 16, 2024
7dc8049
check the reason
rbi-aap Sep 16, 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
50 changes: 22 additions & 28 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,39 @@ module.exports = {
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"no-console": [
"error",
{"allow": ["warn", "error"]}
],
"react/no-deprecated": [
1,
],
"react/jsx-no-target-blank": [
0,
],
"indent": ["error", 4],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-console": ["error", {"allow": ["warn", "error"]}],
"react/no-deprecated": [1],
"react/jsx-no-target-blank": [0]
},
"settings": {
"react": {
"version": "16.2"
}
}
},
"overrides": [
{
"files": ["webpack.config.js", "*.config.js"],
"env": {
"node": true,
"commonjs": true
},
"globals": {
"__dirname": "readonly",
"process": "readonly"
}
}
]
};
8 changes: 6 additions & 2 deletions .github/workflows/tests-py38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ jobs:
python-version: 3.8

- name: docker-compose
run: docker-compose -f .actions-docker-compose.yml up -d
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
Expand All @@ -30,7 +34,7 @@ jobs:

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

- name: flake8
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
python-version: 3.6

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

- run: |
sudo apt-get update
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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The savePermissions function was moved, but the original commented lines above it have not.

/** Save permissions for a company
 *
 */

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update,

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment for /** Save permissions for a company still is not in the correct place. Please fix the comment location so it is above the function it is referencing

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
Loading