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

feat: file transfer from reroils-data #1

Merged
merged 1 commit into from
Sep 6, 2018

Conversation

rerowep
Copy link
Contributor

@rerowep rerowep commented Sep 4, 2018

Signed-off-by: Peter Weber [email protected]
Co-authored-by: Bertrand Zuchuat [email protected]

Verify:
all nedded files from https://github.com/rero/reroils-data-legacy/tree/auth-master have been transferred

Test:
./scripts/bootstrap
./run_tests.ch

@@ -42,6 +42,7 @@ htmlcov/
.coverage
.coverage.*
.cache
.pytest_cache
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was always on git status

recursive-include docs *.bat
recursive-include docs *.py
recursive-include docs *.rst
recursive-include docs *.txt
recursive-include docs Makefile
recursive-include rero_mef *.gitkeep
Copy link
Contributor

Choose a reason for hiding this comment

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

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comes from check-manifest -u

# ----------------------------------- Classes ---------------------------------

# MrcIterator ----
class Transformation(object):
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. BnfTransformation instead? If yes do the same for the others.
  2. Create a base class for the common methods.

self.logger = logger
self.verbose = verbose
self.json_dict = {}
if transform:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why? More generally we can have a class method such as: set_marc(marc) that do the transformation and a cached property for json.


# ----------------------------------- Classes ---------------------------------
# MrcIterator ----
class Transformation(object):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be a base class?

}


def test_bnf_language_of_perso_2():
Copy link
Contributor

Choose a reason for hiding this comment

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

bad name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comes from baa et pag

assert trans.json == {}


def test_gnd_language_of_person_1():
Copy link
Contributor

Choose a reason for hiding this comment

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

bad name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comes from baa et pag



def test_gnd_language_of_person_1():
"""Test language of person 377 $a (langue sur 3 caractères) ISO 639-2b"""
Copy link
Contributor

Choose a reason for hiding this comment

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

in french (copy/paste)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comes from baa et pag

}


def test_gnd_language_of_person_2():
Copy link
Contributor

Choose a reason for hiding this comment

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

bad name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comes from baa et pag

@@ -24,13 +24,13 @@

"""Views tests."""

from __future__ import absolute_import, print_function
Copy link
Contributor

Choose a reason for hiding this comment

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

Why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's from the cookiecutter, You have to ask invenio.

Signed-off-by: Peter Weber <[email protected]>
Co-authored-by: Bertrand Zuchuat <[email protected]>
@rerowep rerowep force-pushed the wep-#645-file-transfer-from-data branch from 59f6029 to 589b070 Compare September 6, 2018 05:43
@jma jma merged commit 6009011 into rero:master Sep 6, 2018
@rerowep rerowep deleted the wep-#645-file-transfer-from-data branch September 21, 2018 05:53
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.

2 participants