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

Investigate and resolve marshmallow deprecations #1112

Closed
fenekku opened this issue Oct 25, 2021 · 4 comments
Closed

Investigate and resolve marshmallow deprecations #1112

fenekku opened this issue Oct 25, 2021 · 4 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@fenekku
Copy link
Contributor

fenekku commented Oct 25, 2021

Marshmallow is gearing up for version 4 and generating deprecation warnings. We should investigate and resolve them, so we can transition nicely.

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'load_from': 'from', 'dump_to': 'from'}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'load_from': 'partNumber', 'location': 'query'}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'load_from': 'Content-Length', 'location': 'headers'}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'load_from': 'Content-Type', 'location': 'headers'}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'load_from': 'Content-MD5', 'location': 'headers'}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:184: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead.
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'load_from': '_chunkNumber', 'location': 'form'}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'load_from': '_currentChunkSize', 'location': 'form'}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'load_from': 'file', 'location': 'files'}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'load_from': '_totalSize', 'location': 'form'}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'location': 'query'}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'location': 'query', 'load_from': 'versionId'}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'location': 'query', 'load_from': 'uploadId'}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'locations': ('query', 'json')}
  RemovedInMarshmallow4Warning,

.venv/lib/python3.7/site-packages/marshmallow/fields.py:222: RemovedInMarshmallow4Warning: Passing field metadata as keyword arguments is deprecated. Use the explicit `metadata=...` argument instead. Additional metadata: {'locations': ('query', 'json'), 'load_from': 'partSize'}
  RemovedInMarshmallow4Warning,

We will need to do some sleuthing to figure out where they are coming from.

@fenekku
Copy link
Contributor Author

fenekku commented Nov 1, 2021

.venv/lib/python3.7/site-packages/marshmallow/fields.py:184: RemovedInMarshmallow4Warning: The 'missing' argument to fields is deprecated. Use 'load_default' instead. was addressed in invenio-rdm-records

@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2022

This issue was automatically marked as stale.

@github-actions github-actions bot added the stale No activity for more than 60 days. label Jan 1, 2022
@fenekku fenekku removed the stale No activity for more than 60 days. label Jan 5, 2022
@lnielsen lnielsen added the good first issue Good for newcomers label Feb 10, 2022
@lnielsen
Copy link
Member

Note @utnapischtim has already fixed some of these

@ntarocco
Copy link
Contributor

ntarocco commented Mar 3, 2022

Apparently all warnings have been fixed by inveniosoftware/invenio-oaiserver#214

@ntarocco ntarocco closed this as completed Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants