mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 17:15:17 +00:00
44dff83046
* add last_active_at to users page * Use our JSON encoder as the SQLAlchemy JSON serializer. * Fixed some inconsistencies in the user query class methods. * Minor cosmetic fixes. * Add some make tasks for easier development. * Add user detail sync system based on Redis backend. There is a periodic Celery task that updates a new “details” JSONB column in the “user” table with the data from Redis. Currently this is only used for tracking the date of last activity of a user but can be extended with other user information later. Updates a few dependencies. * Normalize a few Flask extension API names. * Reduce implementation complexity of JSONEncoder. * Use request_started signal to make sure we have a request context. Otherwise loading the user based on the request won’t work. * Fix test that checks if disabled users can login. This correctly uses a URL path that includes the current organization and checks for the error message. The previous test seems to have been a red herring. * Minor cosmetic fixes. * Remove needs_sync in favor of just deleting things. * Misc review fixes. * Ignore line length. * Split redash.models import several modules. * Move walrus UTC DateTimeField into redash.models.types. * Restore distinctly loading dashboards. * Simplify default values for user details. * Define __repr__ methods generically. * Consistently have underscore methods at the top of model methods. * Fix tests. * Split redash.models import several modules. * Update to latest walrus and redis-py. * Update kombu to 4.2.2 for redis-py 3.x compatibility. * Remove redis-cli container after running Make task. * Move buffer condition after datetime/time conditions. * Update walrus to 0.7.1. * Refactor some query APIs. This uses the flask-sqlalchemy helpers consistently and makes more use of mixins. * Post rebase fixes. * Use correct kombu version * Fix migration down revision
58 lines
1.2 KiB
Makefile
58 lines
1.2 KiB
Makefile
.PHONY: compose_build up test_db create_database clean down bundle tests lint backend-unit-tests frontend-unit-tests test build watch start redis-cli bash
|
|
|
|
compose_build:
|
|
docker-compose build
|
|
|
|
up:
|
|
docker-compose up -d --build
|
|
|
|
test_db:
|
|
@for i in `seq 1 5`; do \
|
|
if (docker-compose exec postgres sh -c 'psql -U postgres -c "select 1;"' 2>&1 > /dev/null) then break; \
|
|
else echo "postgres initializing..."; sleep 5; fi \
|
|
done
|
|
docker-compose exec postgres sh -c 'psql -U postgres -c "drop database if exists tests;" && psql -U postgres -c "create database tests;"'
|
|
|
|
create_database:
|
|
docker-compose run server create_db
|
|
|
|
clean:
|
|
docker-compose down && docker-compose rm
|
|
|
|
down:
|
|
docker-compose down
|
|
|
|
bundle:
|
|
docker-compose run server bin/bundle-extensions
|
|
|
|
tests:
|
|
docker-compose run server tests
|
|
|
|
lint:
|
|
./bin/flake8_tests.sh
|
|
|
|
backend-unit-tests: up test_db
|
|
docker-compose run --rm --name tests server tests
|
|
|
|
frontend-unit-tests: bundle
|
|
npm install
|
|
npm run bundle
|
|
npm test
|
|
|
|
test: lint backend-unit-tests frontend-unit-tests
|
|
|
|
build: bundle
|
|
npm run build
|
|
|
|
watch: bundle
|
|
npm run watch
|
|
|
|
start: bundle
|
|
npm run start
|
|
|
|
redis-cli:
|
|
docker-compose run --rm redis redis-cli -h redis
|
|
|
|
bash:
|
|
docker-compose run --rm server bash
|