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

global: expose get loan for item logic and refactoring #75

Merged
merged 2 commits into from
Oct 22, 2018

Conversation

ntarocco
Copy link
Contributor

  • extracts the logic to retrieve the loan status for an item in api
  • changes schema and record creation to have mandatory loan_pid field
  • fixes bug when searching loans by pid
  • fixes db commit and indexing after loan change
  • moves PIDs constants in a common module
  • moves blueprints registration to entrypoints
  • improves tests and fixtures

* extracts the logic to retrieve the loan status for an item in api
* changes schema and record creation to have mandatory loan_pid field
* fixes bug when searching loans by pid
* fixes db commit and indexing after loan change
* moves PIDs constants in a common module
* moves blueprints registration to entrypoints
* improves tests and fixtures
* closes inveniosoftware#59
@@ -12,12 +12,11 @@
"$schema": {
"type": "keyword"
},
"loanid": {
"loan_pid": {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 thanks for that, I was lost in different naming for ids

@@ -12,12 +12,11 @@
"$schema": {
"type": "keyword"
},
"loanid": {
"loan_pid": {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 thanks for that, I was lost in different naming for ids

@@ -18,8 +18,7 @@
"index": "not_analyzed"
},
"transaction_date": {
"type": "date",
"format": "yyyy-MM-dd"
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a global date format now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So, dates are in this format for now:
2018-02-01T09:30:00+02:00
ES will automatically pick the right date format, but it could be that we will change it if it not good enough.

@ntarocco
Copy link
Contributor Author

Reviewed also with Zac

@ntarocco ntarocco merged commit a703156 into inveniosoftware:master Oct 22, 2018
@ntarocco ntarocco removed the review label Oct 22, 2018
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