Skip to content

Refactor tendermint directory to project root#2401

Merged
ttmc merged 31 commits intobigchaindb:masterfrom
z-bowen:refactor-tendermint-directory-to-project-root
Jul 25, 2018
Merged

Refactor tendermint directory to project root#2401
ttmc merged 31 commits intobigchaindb:masterfrom
z-bowen:refactor-tendermint-directory-to-project-root

Conversation

@z-bowen
Copy link
Copy Markdown
Contributor

@z-bowen z-bowen commented Jul 24, 2018

Problem: The BigchainDB class should be defined in project root, not in the /tendermint directory.

Solution

Moved the BigchainDB class to lib.py in project root, as well as the rest of the contents from the /tendermint directory, and removed /tendermint.

z-bowen added 18 commits June 28, 2018 12:01
Solution: Remove core.py. Refactor BigchainDB Class to remove inheritance from Bigchain.
Solution: Remove core.py. Refactor BigchainDB Class to remove inheritance from Bigchain.
…its, as I don't know what I'm doing, and I can't experiment without running the CI...

Sorry in advance!
…its, as I don't know what I'm doing, and I can't experiment without running the CI...

Sorry in advance!
Solution: resolved merge conflicts to excavate Block class from my branch
Solution: Merged and repushed
Solution: Merge changes into Master
Solution: Removed the /tendermint directory and moved its contents to project root
@z-bowen z-bowen requested a review from ldmberman July 24, 2018 10:32
@@ -1,26 +0,0 @@
######################
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You will also have to remove the reference to this page from the file that generates the table of contents for the Appendices, i.e. docs/server/source/appendices/index.rst

Currently, when I go to the /docs/server/ directory and do make html, I get the error message:

Warning, treated as error:
/home/troy/repos/bigchaindb/docs/server/source/appendices/index.rst:4:toctree contains reference to nonexisting document 'appendices/tendermint-integration'
Makefile:56: recipe for target 'html' failed
make: *** [html] Error 2

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@ttmc
Copy link
Copy Markdown
Contributor

ttmc commented Jul 24, 2018

There are also some Flake8 errors --- see the Travis CI reports.

Solution: Had to play around with the order of imports to avoid cyclic dependencies, but its working and style compliant now
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jul 24, 2018

Codecov Report

Merging #2401 into master will decrease coverage by <.01%.
The diff coverage is 92.78%.

@@            Coverage Diff            @@
##           master   #2401      +/-   ##
=========================================
- Coverage    86.9%   86.9%   -0.01%     
=========================================
  Files          38      38              
  Lines        2169    2168       -1     
=========================================
- Hits         1885    1884       -1     
  Misses        284     284

z-bowen added 2 commits July 24, 2018 21:44
Solution: Removed the references to /tendermint
Solution: The import is there so I can import App directly from bigchaindb, rather than from bigchaindb.core (which I think improves code readability. I added a # noqa to silence Flake8.
@ttmc
Copy link
Copy Markdown
Contributor

ttmc commented Jul 25, 2018

You fixed the problem with index.rst, but now there is some other problem with building the docs:

Warning, treated as error:
autodoc: failed to import class 'BigchainDB' from module 'bigchaindb.tendermint'; the following exception was raised:
No module named 'bigchaindb.tendermint'

The bigchaindb.tendermint module is referenced in the file docs/server/source/appendices/the-bigchaindb-class.rst.

Also there are some docstrings which still refer to the bigchaindb.tendermint module, and that might cause problems with documentation generation based on those docstrings.

z-bowen added 2 commits July 25, 2018 14:30
…e rst files cause Sphinx to fail

Solution: Updated the autodoc files to use `bigchaindb.BigchainDB` instead
…n a disabled test

Solution: Updated the @patch for completeness
z-bowen added 8 commits July 25, 2018 16:40
Solution: Removed the /tendermint directory and moved its contents to project root
Solution: Had to play around with the order of imports to avoid cyclic dependencies, but its working and style compliant now
Solution: Removed the references to /tendermint
Solution: The import is there so I can import App directly from bigchaindb, rather than from bigchaindb.core (which I think improves code readability. I added a # noqa to silence Flake8.
…e rst files cause Sphinx to fail

Solution: Updated the autodoc files to use `bigchaindb.BigchainDB` instead
…n a disabled test

Solution: Updated the @patch for completeness
…b.com:z-bowen/bigchaindb into refactor-tendermint-directory-to-project-root
@ttmc ttmc merged commit 2386ca9 into bigchaindb:master Jul 25, 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.

4 participants