Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/maint-v14.5.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
monotasker committed Aug 19, 2024
2 parents eddd61d + dc63a11 commit 81f95e5
Show file tree
Hide file tree
Showing 55 changed files with 1,865 additions and 72 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
pip install ".[$EXTRAS]"
pip freeze
docker --version
docker-compose --version
docker compose version
- name: Run tests
run: ./run-tests.sh
56 changes: 56 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,62 @@
Changes
=======

Version v14.5.2 (released 2024-08-07)

- tests: replace docker-compose with docker compose
- user_moderation: dispatch Celery tasks for each community operation
- fix(logo): not fully deleted
* logo file hasn't been deleted. this prevented a new file upload,
because of an sqlalchemy.exc.IntegrityError:
(psycopg2.errors.UniqueViolation) error.
- subcommunities: fix missing double-quote in email templates

Version 14.5.1 (released 2024-06-28)

- subcommunity: updated fieldpaths and error handling
- subcommunity: updated error mapping in the ui

Version 14.5.0 (released 2024-06-28)

- subcommunities: pass "payload" to request creation

Version 14.4.0 (released 2024-06-28)

- subcommunity: updated fieldpaths in the ui
- subcommunities: fix request redirect url
- errors: added subcommunities errors
- subcommunities: check for parent children allow

Version 14.3.0 (released 2024-06-27)

- subcommunities: made the request form overridable
- subcommunities: pass community object
- subcommunities: added auto-accept to request
- request: added subcommunity type as a function to entry point
- profile: rename award label
* closes https://github.com/inveniosoftware/invenio-app-rdm/issues/2602

Version 14.2.0 (released 2024-06-24)

- subcommunities: fixed redirect url after new request
- subcommunities: add notifications
- subcommunities-ui: explicitly sort by newest first in form dropdown
- bug: return 404 if community cannot have children
- bug: filter out communities that have a parent or can have children (#1154)
- bug: allow adding existing communities

Version 14.1.0 (released 2024-06-20)

- mappings: add dynamic mappings for user profiles and preferences
- community-ui: improve creation UX
* cast slug to lowercase
- subcommunities: initial minimal feature implementation
- ui: fixed tombstone dumping

Version 14.0.0 (released 2024-06-04)

- installation: bump invenio-vocabularies

Version 13.0.3 (released 2024-05-15)

- components: fix parent update permissions
Expand Down
2 changes: 1 addition & 1 deletion invenio_communities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
from .ext import InvenioCommunities
from .proxies import current_communities

__version__ = "13.0.3"
__version__ = "14.5.2"

__all__ = ("InvenioCommunities", "current_communities")
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is part of Invenio-Communities
// Copyright (C) 2021 CERN.
// Copyright (C) 2021-2024 CERN.
// Copyright (C) 2021 Northwestern University.
//
// Invenio-communities is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -108,4 +108,22 @@ export class CommunityApi {
...options,
});
}

/**
* Create a new community.
*
* @param {string} communityId - Community UUID
* @param {object} payload - Serialized community
* @param {object} options - Custom options
*/
async createSubcommunity(communityId, payload, options) {
options = options || {};
const headers = {
"Content-Type": "application/json",
};
return http.post(`${this.baseUrl}/${communityId}/actions/join-request`, payload, {
headers: headers,
...options,
});
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of Invenio.
* Copyright (C) 2016-2022 CERN.
* Copyright (C) 2016-2024 CERN.
* Copyright (C) 2021-2022 Northwestern University.
*
* Invenio is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -34,7 +34,7 @@ const IdentifierField = ({ formConfig }) => {
"This is your community's unique identifier. You will be able to access your community through the URL:"
)}
<br />
{`${formConfig.SITE_UI_URL}/communities/${values["slug"]}`}
{`${formConfig.SITE_UI_URL}/communities/${values["slug"].toLowerCase()}`}
</>
);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* This file is part of Invenio.
* Copyright (C) 2024-2024 CERN.
* Copyright (C) 2024 CERN.
*
* Invenio is free software; you can redistribute it and/or modify it
* under the terms of the MIT License; see LICENSE file for more details.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ class CommunityProfileForm extends Component {
size: 5,
},
}}
label={i18next.t("Awards")}
label={i18next.t("Awards/Grants")}
labelIcon="money bill alternate outline"
deserializeAward={(award) => {
return {
Expand Down
Loading

0 comments on commit 81f95e5

Please sign in to comment.