Refactor tendermint directory to project root#2401
Conversation
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!
…gchaindb into z-bowen-remove_bigchain_class
…ivate method, so I had to align with that.
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
| @@ -1,26 +0,0 @@ | |||
| ###################### | |||
There was a problem hiding this comment.
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
|
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 Report
@@ 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 |
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.
|
You fixed the problem with index.rst, but now there is some other problem with building the docs: The bigchaindb.tendermint module is referenced in the file 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. |
…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
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
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.