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

Add meta field to entry model #1698

Open
wants to merge 76 commits into
base: 0.25.x
Choose a base branch
from

Conversation

JPBergsma
Copy link
Contributor

@JPBergsma JPBergsma commented Jul 6, 2023

I am trying to add support for the metadata field as described in issue #1697
It is still a work in progress, as I still need to add tests and validators, but comments are welcome.

@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Merging #1698 (44d8789) into master (8510ffa) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1698      +/-   ##
==========================================
+ Coverage   90.68%   90.78%   +0.09%     
==========================================
  Files          74       74              
  Lines        4616     4665      +49     
==========================================
+ Hits         4186     4235      +49     
  Misses        430      430              
Flag Coverage Δ
project 90.78% <100.00%> (+0.09%) ⬆️
validator 90.67% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
optimade/models/entries.py 98.61% <100.00%> (+0.83%) ⬆️
optimade/server/config.py 94.05% <100.00%> (+0.37%) ⬆️
optimade/server/mappers/entries.py 96.82% <100.00%> (+0.36%) ⬆️
optimade/server/routers/utils.py 95.23% <100.00%> (+0.11%) ⬆️

Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

Thanks @JPBergsma, this is nice. Very minor suggestions below.

Let's have a chat on Monday about the best way of merging this (and the other 1.2 features).

optimade/models/entries.py Outdated Show resolved Hide resolved
optimade/models/entries.py Outdated Show resolved Hide resolved
optimade/server/config.py Show resolved Hide resolved
optimade/models/entries.py Show resolved Hide resolved
JPBergsma and others added 17 commits September 30, 2023 15:15
update description property_metadata field

Co-authored-by: Matthew Evans <7916000+ml-evs@users.noreply.github.com>
* Use Python 3.9 as the 'base' CI version for linting

* Update pre-commit hooks

* Run `pyupgrade --py39-plus` to upgrade legacy annotations

* Add `--exit-non-zero-on-fix` for ruff

Co-authored-by: Casper Welzel Andersen <43357585+CasperWA@users.noreply.github.com>

* Use f-string over format

Co-authored-by: Casper Welzel Andersen <43357585+CasperWA@users.noreply.github.com>

---------

Co-authored-by: Casper Welzel Andersen <43357585+CasperWA@users.noreply.github.com>
@ml-evs ml-evs changed the base branch from master to 0.25.x October 23, 2023 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants