Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/cn-develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Dec 1, 2023
2 parents cb8044d + 7bc913f commit 0e492fb
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 17,211 deletions.
2 changes: 1 addition & 1 deletion client/.npmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
package-lock=true
package-lock=false
16,831 changes: 0 additions & 16,831 deletions client/package-lock.json

This file was deleted.

1 change: 0 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"build": "export NODE_ENV=production && webpack --progress --profile --colors"
},
"dependencies": {
"firebase": "9.6.11",
"newsroom-core": "github:superdesk/newsroom-core#develop"
},
"devDependencies": {
Expand Down
23 changes: 0 additions & 23 deletions client/src/auth.js

This file was deleted.

57 changes: 0 additions & 57 deletions client/src/login.js

This file was deleted.

42 changes: 0 additions & 42 deletions client/src/reset-password.js

This file was deleted.

8 changes: 1 addition & 7 deletions client/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
const path = require('path');
const config = require('newsroom-core/webpack.config');

config.entry.login = path.resolve(__dirname, 'src', 'login.js');
config.entry.reset_password = path.resolve(__dirname, 'src', 'reset-password.js');

module.exports = config;
module.exports = require('newsroom-core/webpack.config')
107 changes: 0 additions & 107 deletions server/cp/auth.py

This file was deleted.

6 changes: 3 additions & 3 deletions server/cp/common_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

AUTH_PROVIDERS.extend([{
"_id": "gip",
"name": lazy_gettext("Google"),
"auth_type": AuthProviderType.GOOGLE_OAUTH.value,
"name": lazy_gettext("Firebase"),
"auth_type": AuthProviderType.FIREBASE,
}, {
"_id": "azure",
"name": lazy_gettext("Azure"),
"auth_type": AuthProviderType.SAML.value,
"auth_type": AuthProviderType.SAML,
}])
6 changes: 3 additions & 3 deletions server/cp/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ def on_user_created(sender, user, **kwargs):
def on_user_updated(sender, user, updates=None, **kwargs):
if user_auth_is_gip(user):
if updates and updates.get("password"):
send_notification("password change", user)
send_notification("password", user)
else:
send_notification("update user", user)
send_notification("update", user)


def on_user_deleted(sender, user, **kwargs):
if user_auth_is_gip(user):
send_notification("delete user", user)
send_notification("delete", user)


def on_push(sender, item, **kwargs):
Expand Down
1 change: 0 additions & 1 deletion server/requirements.in
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
google-auth==2.6.0
git+https://github.com/superdesk/newsroom-core.git@develop#egg=Newsroom-Core
2 changes: 1 addition & 1 deletion server/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ flask-wtf==0.14.3
future==0.18.3
# via python-twitter
google-auth==2.6.0
# via -r requirements.in
# via newsroom-core
gunicorn==20.0.4
# via newsroom-core
hachoir==3.0a3
Expand Down
6 changes: 2 additions & 4 deletions server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
"DATE_FORMAT": "MMM Do, YYYY",
"COVERAGE_DATE_FORMAT": "MMM Do, YYYY",
"COVERAGE_DATE_TIME_FORMAT": "HH:mm MMM Do, YYYY",

# server formats
"DATE_FORMAT_HEADER": "long",
}
Expand All @@ -101,7 +100,6 @@
"COVERAGE_DATE_TIME_FORMAT": "HH:mm [le] Do MMMM YYYY",
"AGENDA_DATE_FORMAT_SHORT": "dddd, D MMMM",
"AGENDA_DATE_FORMAT_LONG": "dddd, D MMMM YYYY",

# server formats
"DATE_FORMAT_HEADER": "d MMMM yyyy à H:mm zzz",
"NOTIFICATION_EMAIL_TIME_FORMAT": "HH:mm",
Expand Down Expand Up @@ -208,7 +206,6 @@


BLUEPRINTS = [
"cp.auth", # we need this one loaded before newsroom.auth to make it override logout
"cp.mgmt_api_docs",
] + [
blueprint
Expand All @@ -233,7 +230,6 @@
INSTALLED_APPS = [
"cp.sidenav",
"cp.signals",
"cp.auth",
"newsroom.auth.saml",
]

Expand Down Expand Up @@ -306,6 +302,8 @@

AGENDA_SHOW_MULTIDAY_ON_START_ONLY = True

WIRE_NOTIFICATIONS_ON_CORRECTIONS = True

CONTENTAPI_ELASTICSEARCH_SETTINGS["settings"]["analysis"]["analyzer"]["html_field_analyzer"]["filter"] = [
"lowercase",
"elision",
Expand Down
6 changes: 3 additions & 3 deletions server/tests/test_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def test_cem_notification_on_user_changes(app):
{
"object_id": str(user["_id"]),
"company": str(company_id),
"type": "update user",
"type": "update",
"platform": "Test",
}
),
Expand All @@ -102,7 +102,7 @@ def test_cem_notification_on_user_changes(app):
{
"object_id": str(user["_id"]),
"company": str(company_id),
"type": "password change",
"type": "password",
"platform": "Test",
}
),
Expand All @@ -120,7 +120,7 @@ def test_cem_notification_on_user_changes(app):
{
"object_id": str(user["_id"]),
"company": str(company_id),
"type": "delete user",
"type": "delete",
"platform": "Test",
}
),
Expand Down
Loading

0 comments on commit 0e492fb

Please sign in to comment.