sjacorg / bayanat

Open source data management solution for human rights documentation.
https://bayanat.org/
GNU Affero General Public License v3.0
27 stars 16 forks source link

Updates and fixes for the existing Docker-based hosting capability #20

Closed sfpurdy closed 1 month ago

sfpurdy commented 1 year ago

PostgreSQL Connection Dropping

There was an error that caused the PostgreSQL connection to drop when the cached connection goes stale. The fix to the error required the pool_pre_ping=True configuration to be passed to SQL Alchemy per the SQLAlchemy Documentation. This fix uses the SQLALCHEMY_ENGINE_OPTIONS option of the flask-sqlalchemy module to set the pool_pre_ping configuration as outlined in the Module Docs

sfpurdy commented 1 year ago

I closed my previous PR in favor of this new one. This is based on the latest release and takes the updates and fixes from the previous PR.

sjacgit commented 1 year ago

Thanks, we'll review.

sjacgit commented 1 year ago

We're really sorry about the delay. At the moment we're unable to review and merge this PR as we're considering requiring contributor licence agreement for contributions to this project. Please bear with us as we decide on this and we'll get back to you soon.

sjacgit commented 1 month ago

Hello again.

Again we apologize for the time it took us to get back to you. We'll unfortunately reject this PR. However, some of the issues raised here has already been addressed albeit in a different way.

First of all adding a default username and password is a very bad practice which we've purposely avoided, even at the cost of adding an extra step to the installation. Nonetheless, in the latest version of Bayanat, the first admin user can be created from the browser upon first use.

The current docker-compose.yml has been changed a lot since your changes, although most of your requested changes are not addressed. It's optimized for security, reliability and simplicity but it's also serves as a general template for most users who will use the default settings. You're welcome to create your own to fit your infrastructure, unfortunately we won't incorporate your changes here. If you feel there are some changes needed to the current compose file which would affect general users please file a bug or new feature request so discuss the issues you're addressing and agree on a solution.

Lastly, regarding the connection dropping issue, could you please file a bug report to so we can better understand this issue? We need to check how and when this issue occur before we're able to merge a fix. This is to ensure there isn't a better solution available from our side.

Again thank you so much for your interest and contributions.