juntagrico-paas's Issues
Check for expired githubkey
The github key may have expired, which will lead to "BadCredentialsException at /ca/repo" when creating a new application.
The validity not just the existence of the key should be checked here.
https://github.com/juntagrico/juntagrico-paas/blob/5f3442c7893a36b9e641fa811bbe063ea59137c6/adminconsole/views_ca.py#L29C14-L29C14
Log may not be available after redeploy
This happens, when waiting for a while (around 15 minutes) after the redeploy and then clicking next
Traceback (most recent call last):
File "/var/django/adminconsole/venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/var/django/adminconsole/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/var/django/adminconsole/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/var/django/adminconsole/adminconsole/decorators.py", line 16, in wrapper
return view(request, *args, **kwargs)
File "/var/django/adminconsole/adminconsole/views.py", line 62, in show_log
texts = [str(eval(b_text), 'utf-8') if b_text.startswith('b') else b_text for b_text in b_texts]
File "/var/django/adminconsole/adminconsole/views.py", line 62, in <listcomp>
texts = [str(eval(b_text), 'utf-8') if b_text.startswith('b') else b_text for b_text in b_texts]
Exception Type: SyntaxError at /showlog/33/
Exception Value: invalid syntax (<string>, line 1)
Issue and workaround when using ManifestStaticFileStorage
When using
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
After redeploying the project with changed static files, the page does not load (500).
This can be fixed by saving the settings (unchanged) after such a redeploy. I assume the settings saving does something, that should be done after each redeploy.
Option for user to backup and restore their database
Minimal:
- A button that creates db dump (keep the last 5)
- up to 5 button to restore from the last 5 dumps that are stored
- up to 5 Buttons to download the last 5 dumps
Nice to have
- A button to upload a dumpfile
Select branch or commit to deploy
This would be helpful to easily move back to a previous version, when one has problems with an update and can't fix it quickly.
Probably somewhere here this would go.
Limit the number of lines shown from the docker log
Use e.g. container.logs(tail=1000)
to limit the number of lines printed from the logs and avoid a timeout.
juntagrico-paas/adminconsole/views.py
Line 177 in 5f3442c
Private Repos are not listed
private github repos are not selectable on setup.
This is a minor issue as the repo can be and ideally is public.
Reset import to false
When clicking import app, then returning and instead clicking on create new app, the import flag will still be set to TRUE in the session, leading to an incomplete setup.
Add this at the beginning of create_app:
request.session['import'] = False
juntagrico-paas/adminconsole/views_ca.py
Line 25 in 5f3442c
Workaround: Logout and in again before creating the app.
Make "PC Kontonummer" optional
in Setup form
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.