Skip to main content

Invenio Drafts Resources module to create REST APIs

Project description

https://img.shields.io/travis/inveniosoftware/Invenio-Drafts-Resources.svg https://img.shields.io/coveralls/inveniosoftware/Invenio-Drafts-Resources.svg https://img.shields.io/github/tag/inveniosoftware/Invenio-Drafts-Resources.svg https://img.shields.io/pypi/dm/Invenio-Drafts-Resources.svg https://img.shields.io/github/license/inveniosoftware/Invenio-Drafts-Resources.svg

Invenio Drafts Resources module to create REST APIs

TODO: Please provide feature overview of module

Further documentation is available on https://Invenio-Drafts-Resources.readthedocs.io/

Changes

Version v10.0.0 (released 2026-05-29)

  • chore(setup): bump dependencies

  • fix(tests): alembic tests

Version v9.0.2 (released 2026-05-04)

  • fix(auditlog): don’t require session to accommodate API calls

Version v9.0.1 (released 2026-04-10)

  • fix(request-context): provide fallback metadata for non-request ops

Version v9.0.0 (released 2026-04-02)

  • refactor(auditlog): RequestContext using X-Forwarded-for & flask session

  • refactor(auditlog): Add parent_pid to draft actions

  • refactor(auditlog): Define metadata schema dynamically

Version v8.0.1 (released 2026-03-10)

  • fix(api): Cleanup next_draft_id in versions state only on latest draft

  • fix(media-files): Skip sync when draft files doesn’t have a bucket

Version v8.0.0 (released 2026-01-30)

  • chore(setup): bump dependencies

  • chore(black): update formatting to >= 26.0

  • fix: DeprecationWarning from invenio-indexer

  • fix: RemovedInMarshmallow4Warning

  • fix: JSONSCHEMAS_HOST warning

  • fix(chore): DeprecationWarning stdlib

Version v7.3.1 (released 2025-12-08)

  • i18n: pulled translations

Version v7.3.0 (released 2025-11-13)

  • refactor: remove deprecated usage of Link (and derivatives)

  • fix(components): Fix file enabling on metadata-only record

  • refactor(tests): test conditional lock_edit_published_files for files

  • i18n: pulled translations

  • tests: bump invenio-users-resources

Version v7.2.0 (released 2025-07-17)

  • i18n: pulled translations

  • i18n: push translations

Version v7.1.2 (released 2025-07-01)

  • fix: Bug in import files from published record permissions

Version v7.1.1 (released 2025-06-25)

  • auditlog: fix context injection

  • fix: translation only applied on app start

Version v7.1.0 (released 2025-06-11)

  • services: added errors in read_draft components

Version 7.0.0 (release 2025-06-03)

  • setup: bump major dependencies

  • tests: Added tests for remote transfer type * Whole lifecycle - create draft, add remote file, publish, create new version, import files from the previous, add a new remote file, publish, check files are ok

  • fix: remove obsolete code in favour of transfer checks

  • feat: file transfer registry update * Implementation of RFC 0072 - Pluggable Transfer Types for Record Files

Version 6.2.0 (release 2025-05-23)

  • auditlog: actions: update entrypoint registration

  • auditlog: context: Add context resolvers for User, Record and Resource

Version 6.1.1 (release 2025-05-06)

  • installation: fix installation directive (audit-logs)

Version 6.1.0 (release 2025-05-06)

  • i18n: mark strings for translation

  • versions: dump UUIDs as string

  • global: add audit logs to basic record and draft actions

    (experimental, behind a feature flag)

Version 6.0.0 (release 2024-12-10)

  • setup: change to reusable workflows

  • setup: bump major dependencies

  • i18n:push translations

Version 5.1.0 (released 2024-08-09)

  • resources: use and adjust vnd.inveniordm.v1+json http accept header

Version 5.0.0 (released 2024-07-04)

  • services: return DraftNotCreatedError on read_draft when no draft available

    (on published record)

Version 4.0.0 (released 2024-06-04)

  • installation: bump invenio-records-resources

Version 3.1.1 (released 2024-05-17)

  • services: fix permission for file edit

Version 3.1.0 (released 2024-05-03)

  • media-files: prevent copying to new version

Version 3.0.0 (released 2024-01-31)

  • installation: bump dependencies

  • uow: add “bulk_index” param on ParentRecordCommmitOp

Version 2.0.2 (2023-11-07)

  • components: change cleanup method (backwards compatible, performance optimisation)

Version 2.0.1 (2023-10-26)

  • fix: TypeError multiple values for record

Version 2.0.0 (2023-10-19)

  • service: lock files conditionally (breaking change #267)

Version 1.13.1 (2023-10-19)

  • service: handle soft-deleted drafts

Version 1.13.0 (2023-10-16)

  • media files: create missing buckets on new publish

Version 1.12.2 (2023-10-15)

  • service: change from NoResultFound to PIDDoesNotExistsError for consistency in service.read_draft() - affects errors for published records without a draft

Version 1.12.1 (2023-10-10)

  • service: allow passing permission_action in kwargs for search versions

Version 1.12.0 (2023-10-09)

  • versions: set the next index to the max index of all record versions

Version 1.11.2 (2023-10-02)

  • components: handle disabled state on draft delete action

Version 1.11.1 (2023-10-02)

  • components: replace ambiguous error on publish

Version 1.11.0 (2023-09-21)

  • resources: add etag headers

  • resources: add search request param to schema

Version 1.10.1 (2023-09-18)

  • models: avoid flushing when getting records

Version 1.10.0 (2023-09-05)

  • uow: add ParentRecordCommitOp uow

Version 1.9.0 (2023-09-05)

  • service: allow passing of ‘extra_filter’ via kwargs to searches

Version 1.8.1 (2023-08-25)

  • tasks: add margin time window for search to purge deleted documents

  • services: move reindex latest records from records-resources

Version 1.8.0 (2023-08-16)

  • components: conditional lock of files

  • components: refactor file workflow

Version 1.7.1 (2023-08-14)

  • fix an issue where the next version of the draft is incorrectly set

Version 1.7.0 (2023-08-10)

  • records: read_latest method now accepts parent_id and it will return the latest version of a record also by parent_id

  • change error message when publishing with missing files, depending if the record can be metadata only

Version 1.6.0 (2023-07-21)

  • Add parent id resolver

Version 1.5.0 (2023-07-11)

  • add media files components

Version 1.4.2 (2023-07-05)

  • transifex: update config

  • components: add default files enabled variable

Version 1.4.1 (2023-06-06)

  • fix permission check for managing files

Version 1.4.0 (2023-04-25)

  • upgrade invenio-records-resources

  • ensure testing of file indexing

Version 1.3.0 (2023-04-20)

  • upgrade invenio-records-resources

Version 1.2.0 (2023-03-24)

  • bump invenio-records-resources to v2.0.0

Version 1.1.1 (2023-03-03)

  • permissions: add can manage files permission to the draft

Version 1.1.0 (2023-03-02)

  • remove deprecated flask-babelex dependency and imports

  • install invenio-i18n explicitly

Version 1.0.4 (2023-02-22)

  • service: allow to ignore field-level permission checks in validate_draft

  • files: publishing files pending download from Fetch

Version 1.0.3 (2022-12-02)

  • Fix rebuild index memory usage

Version 1.0.2 (2022-11-25)

  • Add i18n translations.

Version 1.0.1 (2022-11-15)

  • Use bulk indexing for service rebuild_index method.

Version 1.0.0 (2022-11-04)

  • Bump invenio-records-resources version

Version 0.2.2 (2020-08-19)

  • Fix support for Elasticsearch 6 and 7

Version 0.2.1 (2020-08-18)

  • Initial public release.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

invenio_drafts_resources-10.0.0.tar.gz (53.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

invenio_drafts_resources-10.0.0-py2.py3-none-any.whl (117.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file invenio_drafts_resources-10.0.0.tar.gz.

File metadata

File hashes

Hashes for invenio_drafts_resources-10.0.0.tar.gz
Algorithm Hash digest
SHA256 432f4fc89a1ae9f9a13bc9c6eeeeb48a79a48ea119a6ed8d7535ec11397a0d5a
MD5 35eb2229207ed6eda305ed00ffd3082c
BLAKE2b-256 95c05bb6ea2c50ac60df2c2a7b42960d04e4c47662e24eb2b14b81c32b531c0c

See more details on using hashes here.

File details

Details for the file invenio_drafts_resources-10.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for invenio_drafts_resources-10.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 81ceaea966f800fcb1374d798156b7f796c743352a9a3539a9e430967db41695
MD5 efc8d99f7838dfd0857675350e7b9fe0
BLAKE2b-256 a0fa9acd0cba64f4b10cc0f019b398f4d8d707b926b5af5b2d1be55002338b06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page