author int64 658 755k | date stringlengths 19 19 | timezone int64 -46,800 43.2k | hash stringlengths 40 40 | message stringlengths 5 490 | mods list | language stringclasses 20 values | license stringclasses 3 values | repo stringlengths 5 68 | original_message stringlengths 12 491 |
|---|---|---|---|---|---|---|---|---|---|
163,161 | 09.05.2020 22:55:01 | -28,800 | bb97b9d3fdde94ed5e7bd02eecf59a2d5d48e430 | impl direct image upload | [
{
"change_type": "MODIFY",
"old_path": "backend/api/urls.py",
"new_path": "backend/api/urls.py",
"diff": "@@ -19,6 +19,9 @@ from .views import (\nget_nearby_or_create_factories,\nupdate_factory_attribute,\nget_factory_report,\n+ post_image_url,\n+\n+ # to be deprecated\npost_image,\npost_factory_ima... | Python | MIT License | disfactory/disfactory | impl direct image upload |
163,161 | 09.05.2020 23:24:46 | -28,800 | 3d0b7e590cf24c2d14f1609b21c57e62667aea15 | add factory image upload test case | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "backend/api/views/tests/test_factory_image_c.py",
"diff": "+import json\n+from uuid import uuid4\n+from datetime import datetime, timezone\n+from unittest.mock import patch\n+from pathlib import Path\n+\n+from freezegun import freeze_time\n+from... | Python | MIT License | disfactory/disfactory | add factory image upload test case |
163,161 | 09.05.2020 23:32:40 | -28,800 | ad7e1f5cde8a55322725db971dfba5d4e9158203 | impl factory image upload | [
{
"change_type": "MODIFY",
"old_path": "backend/api/urls.py",
"new_path": "backend/api/urls.py",
"diff": "@@ -20,6 +20,7 @@ from .views import (\nupdate_factory_attribute,\nget_factory_report,\npost_image_url,\n+ post_factory_image_url,\n# to be deprecated\npost_image,\n@@ -31,8 +32,8 @@ urlpatterns... | Python | MIT License | disfactory/disfactory | impl factory image upload |
163,162 | 13.05.2020 22:32:03 | -28,800 | b777304a70ba363b80ad006e6e12c419275ed345 | Upload to imgur and exif for backend | [
{
"change_type": "MODIFY",
"old_path": "frontend/package-lock.json",
"new_path": "frontend/package-lock.json",
"diff": "\"strip-eof\": \"^1.0.0\"\n}\n},\n+ \"exif-js\": {\n+ \"version\": \"2.3.0\",\n+ \"resolved\": \"https://registry.npmjs.org/exif-js/-/exif-js-2.3.0.tgz\",\n+ \"integrity\": \"sha1-... | Python | MIT License | disfactory/disfactory | Upload to imgur and exif for backend |
163,161 | 20.05.2020 21:52:58 | -28,800 | 07e1ded328c9258c435c59bcdc8bdb40509dec3f | fix compose file up command | [
{
"change_type": "MODIFY",
"old_path": "backend/docker-compose.dev.yml",
"new_path": "backend/docker-compose.dev.yml",
"diff": "@@ -25,7 +25,6 @@ services:\n- /bin/sh\n- -c\n- |\n- pipenv install --dev --system\npython manage.py migrate\npython manage.py runserver 0.0.0.0:8000\n@@ -62,6 +61,6 @@ ser... | Python | MIT License | disfactory/disfactory | fix compose file up command |
163,161 | 20.05.2020 21:57:52 | -28,800 | ed40eba5c4dc7ca002962dc8e79f739a9d44c48c | simpler default env | [
{
"change_type": "MODIFY",
"old_path": "backend/.env.sample",
"new_path": "backend/.env.sample",
"diff": "@@ -4,14 +4,14 @@ DISFACTORY_BACKEND_DEFAULT_DB_PASSWORD=postgres\nDISFACTORY_BACKEND_DEFAULT_DB_HOST=db\nDISFACTORY_BACKEND_DEFAULT_DB_PORT=5432\n-DISFACTORY_ALLOWED_HOST=host_url\n+DISFACTORY_... | Python | MIT License | disfactory/disfactory | simpler default env |
163,179 | 21.05.2020 10:43:11 | -28,800 | faad27428e7725c2d1f9fb14980b5036cbc36e61 | <doc> Update readme | [
{
"change_type": "MODIFY",
"old_path": "backend/docs/SETUP_COMPOSE.md",
"new_path": "backend/docs/SETUP_COMPOSE.md",
"diff": "cp .env.sample .env\n```\n-- Run the containers\n+- Run the containers:\n```bash\n-docker-compose -f docker-compose.dev.yml up -d\n+make run-dev\n```\n-- Go into the running ... | Python | MIT License | disfactory/disfactory | <doc> Update readme |
163,161 | 10.06.2020 00:26:28 | -28,800 | c705d96ac76f4999fbb8041f6e84e6cfa35f593f | hot fix csv export | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/mixins.py",
"new_path": "backend/api/admin/mixins.py",
"diff": "@@ -3,11 +3,16 @@ import csv\nfrom django.http import HttpResponse\n+def _modify(field_name):\n+ if field_name == 'get_name':\n+ return 'name'\n+ return field_name\n+\nclass Expo... | Python | MIT License | disfactory/disfactory | hot fix csv export |
163,176 | 10.06.2020 19:53:15 | -28,800 | 4d289c080c306808c265059581ee3f7ebc0b2c1f | Replace exif-js package source | [
{
"change_type": "MODIFY",
"old_path": "frontend/package-lock.json",
"new_path": "frontend/package-lock.json",
"diff": "\"to-fast-properties\": \"^2.0.0\"\n}\n},\n+ \"@disfactory/exif-js\": {\n+ \"version\": \"2.3.0\",\n+ \"resolved\": \"https://registry.npmjs.org/@disfactory/exif-js/-/exif-js-2.3.0... | Python | MIT License | disfactory/disfactory | Replace exif-js package source |
163,161 | 11.06.2020 21:34:07 | -28,800 | 9089fe76c10b4caebe8b9d740e17cfc9d7809afe | add review related tables | [
{
"change_type": "MODIFY",
"old_path": "backend/api/models/__init__.py",
"new_path": "backend/api/models/__init__.py",
"diff": "from .factory import Factory\nfrom .report_record import ReportRecord\nfrom .image import Image\n+from .document import Document, FollowUp\n+from .review import Review\n+fr... | Python | MIT License | disfactory/disfactory | add review related tables |
163,162 | 01.07.2020 12:02:33 | -28,800 | d6f63e8af199ead766636f962a6e3e4b31fcbbd4 | Fix deploy in ci | [
{
"change_type": "MODIFY",
"old_path": ".circleci/config.yml",
"new_path": ".circleci/config.yml",
"diff": "@@ -63,7 +63,7 @@ jobs:\n- run:\nname: Install and configure dependencies\ncommand: |\n- npm install --silent gh-pages\n+ npm install --silent gh-pages@3.0\ngit config user.email \"ci-build@di... | Python | MIT License | disfactory/disfactory | Fix deploy in ci |
163,168 | 17.06.2020 21:47:10 | -28,800 | 4295a697f039a4a8127e9c72ee7b6104faf9e80a | feat(factory): add rangefilter to filter factory by `reportRecord.created_at` | [
{
"change_type": "MODIFY",
"old_path": "backend/Pipfile",
"new_path": "backend/Pipfile",
"diff": "@@ -20,6 +20,7 @@ django-cors-headers = \"*\"\ngunicorn = \"*\"\ndjango-q = \"==1.0.2\"\ndjango-db-logger = \"*\"\n+django-admin-rangefilter = \"*\"\n[requires]\npython_version = \"3.7\"\n"
},
{
... | Python | MIT License | disfactory/disfactory | feat(factory): add rangefilter to filter factory by `reportRecord.created_at` |
163,168 | 08.07.2020 21:38:19 | -28,800 | 016dc3cda42df8a141b3d5ff59ffd1001234fd55 | feat(factory): add search_fields for column `townname` and `sectname` | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "@@ -152,6 +152,7 @@ class FactoryAdmin(admin.ModelAdmin, ExportCsvMixin):\n\"source\",\n\"get_name\",\n)\n+ search_fields = [\"townname\", \"sectname\"]\nlist_filter = (\n# XXX... | Python | MIT License | disfactory/disfactory | feat(factory): add search_fields for column `townname` and `sectname` |
163,176 | 08.07.2020 21:40:17 | -28,800 | 68dded6425b3c0e227d402b2cd7c5807aaecc5b5 | Add ios version alert modal | [
{
"change_type": "MODIFY",
"old_path": "frontend/src/App.vue",
"new_path": "frontend/src/App.vue",
"diff": "<getting-started-modal :open=\"modalState.gettingStartedModalOpen\" :dismiss=\"modalActions.closeGettingStartedModal\" />\n<safety-modal :open=\"modalState.safetyModalOpen\" :dismiss=\"modalAc... | Python | MIT License | disfactory/disfactory | Add ios version alert modal |
163,161 | 08.07.2020 21:49:37 | -28,800 | 7df2d0feac5b0af7958d3c4dbbdf6d8a9c5f0eaa | update cet_report_status | [
{
"change_type": "MODIFY",
"old_path": "backend/api/views/tests/test_factories_u.py",
"new_path": "backend/api/views/tests/test_factories_u.py",
"diff": "@@ -72,7 +72,7 @@ class PutUpdateFactoryAttribute(TestCase):\ndef test_update_factory_status(self):\ncli = Client()\nput_body = {\n- \"cet_report_... | Python | MIT License | disfactory/disfactory | update cet_report_status |
163,161 | 14.07.2020 14:29:15 | -28,800 | 945df95c4c6843a7213b0cd94f08c66a069b1923 | add a management command to upload all images that are not on Imgur | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "backend/api/management/commands/reupload.py",
"diff": "+import os\n+\n+from django.core.management.base import BaseCommand, CommandError\n+from django.conf import settings\n+\n+from api.models import Image\n+from api.tasks import upload_image\n+... | Python | MIT License | disfactory/disfactory | add a management command to upload all images that are not on Imgur |
163,161 | 14.07.2020 14:36:11 | -28,800 | 99243110ed64a67b4153021c07c470b388dc428e | fix wrong parameter for media root | [
{
"change_type": "MODIFY",
"old_path": "backend/api/management/commands/reupload.py",
"new_path": "backend/api/management/commands/reupload.py",
"diff": "@@ -14,7 +14,7 @@ class Command(BaseCommand):\nfor img in Image.objects.all():\nif 'https://i.imgur.com' not in img.image_path:\nimage_path_on_ser... | Python | MIT License | disfactory/disfactory | fix wrong parameter for media root |
163,161 | 14.07.2020 14:59:44 | -28,800 | 20b9642dce87fa62d70301014ad6520927f9de2a | fix imgur api breaking change | [
{
"change_type": "MODIFY",
"old_path": "backend/api/tasks.py",
"new_path": "backend/api/tasks.py",
"diff": "@@ -19,7 +19,7 @@ def _upload_image_to_imgur(image_buffer, client_id):\nheaders = {'Authorization': f'Client-ID {client_id}'}\ndata = {'image': image_buffer}\nresp = requests.post(\n- 'https:/... | Python | MIT License | disfactory/disfactory | fix imgur api breaking change |
163,161 | 14.07.2020 15:01:50 | -28,800 | f9011628ef3617c7bc03b47f9404ea453dcef4e8 | fix task test case for uploading | [
{
"change_type": "MODIFY",
"old_path": "backend/api/tests/test_tasks.py",
"new_path": "backend/api/tests/test_tasks.py",
"diff": "@@ -30,7 +30,7 @@ class TasksTestCase(TestCase):\nwith patch(\"api.tasks.requests.post\", return_value=mock_imgur_return) as mock_post:\npath = _upload_image_to_imgur(ima... | Python | MIT License | disfactory/disfactory | fix task test case for uploading |
163,161 | 15.07.2020 21:19:29 | -28,800 | 451570bc7756cdec57035ac17d77ce9ebcf4b3b6 | fix factory bug when migration | [
{
"change_type": "MODIFY",
"old_path": "backend/api/migrations/0015_init_town_sect_name_code.py",
"new_path": "backend/api/migrations/0015_init_town_sect_name_code.py",
"diff": "@@ -5,7 +5,7 @@ import csv\nfrom django.db import migrations\nfrom django.conf import settings\n-from api.tasks import upd... | Python | MIT License | disfactory/disfactory | fix factory bug when migration |
163,169 | 21.07.2020 17:51:16 | -32,400 | 458cf65d0f507ac1f8089c7b2ccf99b97bb78e68 | add field: factory_cet_reviewer | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "backend/api/migrations/0022_factory_cet_reviewer.py",
"diff": "+# Generated by Django 2.2.13 on 2020-07-15 12:39\n+\n+from django.conf import settings\n+from django.db import migrations, models\n+import django.db.models.deletion\n+\n+\n+class Mi... | Python | MIT License | disfactory/disfactory | add field: factory_cet_reviewer |
163,169 | 21.07.2020 18:27:42 | -32,400 | d6ca2e342a64ef7a57ed2798aeb0fc2fcd2a4ff9 | revise detail_view for factories | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "@@ -164,6 +164,32 @@ class FactoryAdmin(admin.ModelAdmin, ExportCsvMixin):\nordering = [\"-created_at\"]\nactions = [\"export_as_csv\"]\n+ readonly_fields = (\"id\", \"created_... | Python | MIT License | disfactory/disfactory | revise detail_view for factories |
163,169 | 22.07.2020 21:49:28 | -32,400 | ded2541216a2f402f90dfbd706aa49e534595f56 | add description onto detail view of factory | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "@@ -77,6 +77,26 @@ class FactoryFilteredByCounty(SimpleListFilter):\nreturn queryset\n+class DescriptionInline(admin.TabularInline):\n+ model = ReportRecord\n+ verbose_name = \... | Python | MIT License | disfactory/disfactory | add description onto detail view of factory |
163,161 | 22.07.2020 22:49:31 | -28,800 | 2af613115a7b833acaea924c8a31e783a55d201f | let csv export all columns instead of list_fields | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "@@ -150,7 +150,7 @@ class FactoryAdmin(admin.ModelAdmin, ExportCsvMixin):\n\"landcode\",\n\"factory_type\",\n\"source\",\n- \"get_name\",\n+ \"name\",\n)\nsearch_fields = [\"to... | Python | MIT License | disfactory/disfactory | let csv export all columns instead of list_fields |
163,165 | 02.08.2020 02:19:08 | -28,800 | 59db7529600d5d833c71c6f6ee19375204705562 | Update backend README.md and makefile target 'run-db' | [
{
"change_type": "MODIFY",
"old_path": "backend/Makefile",
"new_path": "backend/Makefile",
"diff": "@@ -11,10 +11,14 @@ test: unittest\nrun:\ndocker-compose -f docker-compose.yml up -d\n-.PHOBY: run-dev\n+.PHONY: run-dev\nrun-dev:\ndocker-compose -f docker-compose.dev.yml up -d\n+.PHONY: run-db\n+ru... | Python | MIT License | disfactory/disfactory | Update backend README.md and makefile target 'run-db' |
163,165 | 05.08.2020 21:16:10 | -28,800 | 5d62f1785cd83a7c63a126b4a984e8f34bdeb967 | Add drf-swagger and swagger document for all api | [
{
"change_type": "MODIFY",
"old_path": "backend/Pipfile",
"new_path": "backend/Pipfile",
"diff": "@@ -21,6 +21,7 @@ gunicorn = \"*\"\ndjango-q = \"==1.0.2\"\ndjango-db-logger = \"*\"\ndjango-admin-rangefilter = \"*\"\n+drf-yasg = \"*\"\n[requires]\npython_version = \"3.7\"\n"
},
{
"change_ty... | Python | MIT License | disfactory/disfactory | Add drf-swagger and swagger document for all api |
163,175 | 07.07.2020 23:52:21 | 18,000 | 56b86a4845f8456f7cf79c33ab7532095609e4bd | Added export to gov doc function | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "@@ -141,7 +141,9 @@ class ImageInlineForFactory(admin.TabularInline):\nget_report_contact.short_description = \"Contact\"\n-class FactoryAdmin(admin.ModelAdmin, ExportCsvMixin,... | Python | MIT License | disfactory/disfactory | Added export to gov doc function |
163,165 | 06.08.2020 21:58:04 | -28,800 | 1d49a879fa767ba9ef31cfafa16af95d7e963a34 | Refactory export docx code and use docxcomposer to merge all report
documents to keep the document format style. | [
{
"change_type": "MODIFY",
"old_path": "backend/Pipfile",
"new_path": "backend/Pipfile",
"diff": "@@ -22,6 +22,8 @@ django-q = \"==1.0.2\"\ndjango-db-logger = \"*\"\ndjango-admin-rangefilter = \"*\"\ndrf-yasg = \"*\"\n+python-docx = \"*\"\n+docxcompose = \"*\"\n[requires]\npython_version = \"3.7\"\n... | Python | MIT License | disfactory/disfactory | Refactory export docx code and use docxcomposer to merge all report
documents to keep the document format style. |
163,165 | 10.08.2020 00:56:10 | -28,800 | 82c9738b08b2b5076a825a059ac148f5489cb47a | Add admin actions test | [
{
"change_type": "ADD",
"old_path": "backend/api/admin/test/__init__.py",
"new_path": "backend/api/admin/test/__init__.py",
"diff": ""
},
{
"change_type": "ADD",
"old_path": null,
"new_path": "backend/api/admin/test/test_actions.py",
"diff": "+from api.models.factory import Facto... | Python | MIT License | disfactory/disfactory | Add admin actions test |
163,178 | 22.08.2020 14:50:19 | -28,800 | f7f8c4ad6ad3e190d065540d476e39b68414f09e | Document add cet_staff & note fields | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "backend/api/migrations/0023_auto_20200822_0649.py",
"diff": "+# Generated by Django 2.2.13 on 2020-08-22 06:49\n+\n+from django.db import migrations, models\n+\n+\n+class Migration(migrations.Migration):\n+\n+ dependencies = [\n+ ('api', '0022_f... | Python | MIT License | disfactory/disfactory | Document add cet_staff & note fields |
163,168 | 29.07.2020 20:52:50 | -28,800 | 5b4f34c07ac385aebbd906d54eccb3d0fb17cc83 | feat(factory): add display number according factory.created_at | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "@@ -145,6 +145,7 @@ class FactoryAdmin(admin.ModelAdmin, ExportCsvMixin, ExportLabelMixin, ExportDoc\nlist_display = (\n\"id\",\n+ \"display_number\",\n\"updated_at\",\n\"townn... | Python | MIT License | disfactory/disfactory | feat(factory): add display number according factory.created_at |
163,169 | 26.08.2020 21:43:35 | -32,400 | 31901f7ab316c771cfe197d1d60c97e4a942f774 | add map widget | [
{
"change_type": "MODIFY",
"old_path": "backend/Pipfile",
"new_path": "backend/Pipfile",
"diff": "@@ -21,6 +21,7 @@ gunicorn = \"*\"\ndjango-q = \"==1.0.2\"\ndjango-db-logger = \"*\"\ndjango-admin-rangefilter = \"*\"\n+django-map-widgets = \"*\"\n[requires]\npython_version = \"3.7\"\n"
},
{
... | Python | MIT License | disfactory/disfactory | add map widget |
163,169 | 26.08.2020 23:10:08 | -32,400 | 645ba2c08f2fb3db2a10850bb11d9fde89fbe4fb | remove google map api key | [
{
"change_type": "MODIFY",
"old_path": "backend/.env.sample",
"new_path": "backend/.env.sample",
"diff": "@@ -16,6 +16,8 @@ DISFACTORY_BACKEND_LOG_FILE=/tmp/disfactory.log\nDISFACTORY_BACKEND_DEBUG=true\nDISFACTORY_BACKEND_PORT=8888\n+GOOGLE_MAP_API_KEY=\n+\n# will be deprecated\nDISFACTORY_IMGUR_CL... | Python | MIT License | disfactory/disfactory | remove google map api key |
163,161 | 30.08.2020 17:49:45 | -28,800 | b130a5adcee59864ec7180ebde0bae609aa50c77 | add batch size to bulk_update to avoid large query overhead | [
{
"change_type": "MODIFY",
"old_path": "backend/api/migrations/0024_factory_display_number.py",
"new_path": "backend/api/migrations/0024_factory_display_number.py",
"diff": "-# Generated by Django 2.2.13 on 2020-07-15 13:31\n+from time import time\nfrom django.db import migrations, models\ndef forwa... | Python | MIT License | disfactory/disfactory | add batch size to bulk_update to avoid large query overhead |
163,161 | 12.09.2020 16:59:30 | -28,800 | 9e9144a52743d693fcc9eb8df7bd48f2f2a0aefe | add display_number in FactorySerializer | [
{
"change_type": "MODIFY",
"old_path": "backend/api/serializers.py",
"new_path": "backend/api/serializers.py",
"diff": "@@ -33,6 +33,7 @@ class FactorySerializer(ModelSerializer):\nmodel = Factory\nfields = [\n\"id\",\n+ \"display_number\",\n\"lat\",\n\"lng\",\n\"name\",\n@@ -46,6 +47,9 @@ class Fac... | Python | MIT License | disfactory/disfactory | add display_number in FactorySerializer |
163,165 | 12.09.2020 17:41:16 | -28,800 | c6aff3a9b727232f4b030b44cc77ddde41022eae | Accroding to
python-docx can't parse some jpeg files correctly, so we use PIL
to format all jpeg files to workaround this issue when generating docx
file. | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/test/test_actions.py",
"new_path": "backend/api/admin/test/test_actions.py",
"diff": "@@ -57,7 +57,12 @@ TEST_FACTORY_DATA = [\n\"factory_type\": \"2-1\",\n\"images\": [\n\"https://i.imgur.com/3XPyVuF.png\",\n+ # python-docx can't parse this ... | Python | MIT License | disfactory/disfactory | Accroding to https://github.com/python-openxml/python-docx/issues/187
python-docx can't parse some jpeg files correctly, so we use PIL
to format all jpeg files to workaround this issue when generating docx
file. |
163,161 | 23.09.2020 20:25:50 | -28,800 | aa3b3ee99e16ba06685aff3f2860b7a5c9b9dc50 | let netlify app url CORS available | [
{
"change_type": "MODIFY",
"old_path": "backend/gis_project/settings.py",
"new_path": "backend/gis_project/settings.py",
"diff": "@@ -223,6 +223,7 @@ if CORS_ORIGIN_WHITELIST is None or CORS_ORIGIN_WHITELIST == '':\nCORS_ORIGIN_WHITELIST = DEFAULT_CORS_ORIGIN_WHITELIST\nelse:\nCORS_ORIGIN_WHITELIST ... | Python | MIT License | disfactory/disfactory | let netlify app url CORS available |
163,161 | 23.09.2020 20:34:08 | -28,800 | 79ad10f4fcc731400456e764dd463b548f4e8daa | allowing empty factory type | [
{
"change_type": "MODIFY",
"old_path": "backend/api/serializers.py",
"new_path": "backend/api/serializers.py",
"diff": "@@ -6,12 +6,16 @@ from rest_framework.serializers import (\nSerializerMethodField,\nValidationError,\n)\n-from django.utils import timezone\nfrom django.conf import settings\n+from... | Python | MIT License | disfactory/disfactory | allowing empty factory type |
163,161 | 23.09.2020 20:50:52 | -28,800 | 0d392b7f04b73793f71735aaf427a7bbccebea4b | allow null field | [
{
"change_type": "MODIFY",
"old_path": "backend/api/serializers.py",
"new_path": "backend/api/serializers.py",
"diff": "@@ -28,7 +28,7 @@ class ImageSerializer(ModelSerializer):\nclass FactorySerializer(ModelSerializer):\nimages = ImageSerializer(many=True, read_only=True)\n- type = CharField(source... | Python | MIT License | disfactory/disfactory | allow null field |
163,161 | 23.09.2020 21:06:15 | -28,800 | e6dc925c87de45b44b20f6e73abff66567f18fcb | allow factory type to be empty for API view | [
{
"change_type": "MODIFY",
"old_path": "backend/api/views/factories_cr.py",
"new_path": "backend/api/views/factories_cr.py",
"diff": "@@ -106,7 +106,7 @@ def _handle_create_factory(request):\n'name': post_body[\"name\"],\n'lat': post_body[\"lat\"],\n'lng': post_body[\"lng\"],\n- 'factory_type': post... | Python | MIT License | disfactory/disfactory | allow factory type to be empty for API view |
163,165 | 29.09.2020 19:12:18 | -28,800 | 881119cc9560300f1b1022eccc11488df4b1c980 | Add document add/change form and move the export docx action from factory list to document list | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/__init__.py",
"new_path": "backend/api/admin/__init__.py",
"diff": "+from api.models.document import Document\nfrom django.contrib import admin\nfrom api.models import (\n@@ -11,6 +12,7 @@ from api.models.report_record import RecycledReportRe... | Python | MIT License | disfactory/disfactory | Add document add/change form and move the export docx action from factory list to document list |
163,168 | 07.10.2020 22:52:52 | -28,800 | 6a2f089b5b0c8f11b69fa3fa42763ea904cc1538 | feat(flake8): use flake8 to lint files | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "backend/.flake8",
"diff": "+[flake8]\n+max-line-length = 88\n+ignore =\n+ E501, # line too long\n+ W503\n"
},
{
"change_type": "MODIFY",
"old_path": "backend/api/serializers.py",
"new_path": "backend/api/serializers.py",
"dif... | Python | MIT License | disfactory/disfactory | feat(flake8): use flake8 to lint files |
163,168 | 09.10.2020 16:50:53 | -28,800 | 9b6fcb271df02c98afc1dc22b4403ac8c4bcc08a | feat(api): return column `document_display_status` in `/factories` API | [
{
"change_type": "MODIFY",
"old_path": "backend/api/serializers.py",
"new_path": "backend/api/serializers.py",
"diff": "@@ -9,7 +9,7 @@ from django.conf import settings\nfrom django.core.exceptions import ValidationError\nfrom django.utils import timezone\n-from .models import Factory, Image, Report... | Python | MIT License | disfactory/disfactory | feat(api): return column `document_display_status` in `/factories` API |
163,165 | 07.10.2020 22:27:39 | -28,800 | 886c9ff0c1168e6aa0a527a6b7e1baa89112dd8f | Add migration script to rename the document field of followup model | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/__init__.py",
"new_path": "backend/api/admin/__init__.py",
"diff": "-from api.models.document import Document\nfrom django.contrib import admin\nfrom api.models import (\n@@ -7,6 +6,7 @@ from api.models import (\nReportRecord,\n)\nfrom api.mo... | Python | MIT License | disfactory/disfactory | Add migration script to rename the document field of followup model |
163,165 | 28.10.2020 21:10:22 | -28,800 | 4efec7a3a5042a5b363a2904a4fd143968b36198 | Add documenttags (cet next, gov response status and cet report status) | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/__init__.py",
"new_path": "backend/api/admin/__init__.py",
"diff": "@@ -6,13 +6,13 @@ from api.models import (\nReportRecord,\n)\nfrom api.models.factory import RecycledFactory\n-from api.models.document import Document\n+from api.models.docu... | Python | MIT License | disfactory/disfactory | Add documenttags (cet next, gov response status and cet report status) |
163,178 | 28.10.2020 22:02:29 | -28,800 | 6a47e33849e42ea86f21b1cdbe5b4da7b6593f9f | write FollowUp when DocumentAdmin.save_model | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/document.py",
"new_path": "backend/api/admin/document.py",
"diff": "from django.contrib import admin\nfrom django.utils.html import format_html\n-from api.models import FollowUp, Image\n+from api.models import Document, DocumentDisplayStatusE... | Python | MIT License | disfactory/disfactory | write FollowUp when DocumentAdmin.save_model |
163,168 | 28.10.2020 22:20:18 | -28,800 | 4b2c113e733a8c566783bc9fbad18eee247f18a0 | feat(factory): add column from latest repordrecord created_at | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "+from django.db.models import Max\n+\nfrom django.contrib import admin\nfrom django.contrib.admin import SimpleListFilter\nfrom django.utils.html import mark_safe\n@@ -24,7 +26... | Python | MIT License | disfactory/disfactory | feat(factory): add column from latest repordrecord created_at |
163,168 | 04.11.2020 20:23:51 | -28,800 | 319626862a7f72518e1866189ac39b0f48f375f5 | feat: search by display_number and add display_number in fieldsets | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "@@ -169,7 +169,7 @@ class FactoryAdmin(\n\"id\",\n\"display_number\",\n\"updated_at\",\n- \"reportrecord_lastest_created_at\",\n+ \"reportrecord_latest_created_at\",\n\"townnam... | Python | MIT License | disfactory/disfactory | feat: search by display_number and add display_number in fieldsets |
163,168 | 04.11.2020 21:01:25 | -28,800 | 6251c4e7fe6bd541827febd2fdd839a6e0934c94 | fix: should filter by reportrecord_latest_created_at | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "@@ -25,17 +25,11 @@ class FactoryWithReportRecords(DateRangeFilter):\nif self.form.is_valid():\nvalidated_data = dict(self.form.cleaned_data.items())\nquery_params = super()._m... | Python | MIT License | disfactory/disfactory | fix: should filter by reportrecord_latest_created_at |
163,178 | 11.11.2020 20:21:05 | -28,800 | 75d8c18a141973484015b7a743a98848f95da663 | impl set_function_attributes decorator | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "@@ -12,6 +12,7 @@ from api.admin.actions import (\nExportLabelMixin,\nGenerateDocsMixin,\n)\n+from api.utils import set_function_attributes\nfrom rangefilter.filter import Date... | Python | MIT License | disfactory/disfactory | impl set_function_attributes decorator |
163,161 | 11.11.2020 20:25:41 | -28,800 | 99c69a7a0b52379ba25f1bfcd401212aa93e79cf | use local timezone | [
{
"change_type": "MODIFY",
"old_path": "backend/api/views/miscellaneous/tests/test_factory_image_c.py",
"new_path": "backend/api/views/miscellaneous/tests/test_factory_image_c.py",
"diff": "import json\nfrom uuid import uuid4\n-from datetime import datetime, timezone\n+from datetime import datetime,... | Python | MIT License | disfactory/disfactory | use local timezone |
163,178 | 11.11.2020 21:21:54 | -28,800 | 7155c85d04a42dae14ef4cd967445790d8baefd9 | refactor loop/condition syntax | [
{
"change_type": "MODIFY",
"old_path": "backend/api/serializers.py",
"new_path": "backend/api/serializers.py",
"diff": "@@ -61,9 +61,10 @@ class FactorySerializer(ModelSerializer):\ndef get_reported_at(self, obj):\nreport_records = ReportRecord.objects.only(\"created_at\").filter(factory=obj)\n- if ... | Python | MIT License | disfactory/disfactory | refactor loop/condition syntax |
163,178 | 11.11.2020 21:30:54 | -28,800 | 335fe511f814bc7ecbfd46967f97c1e3767ebb5a | reorganize spacing | [
{
"change_type": "MODIFY",
"old_path": "backend/api/tasks.py",
"new_path": "backend/api/tasks.py",
"diff": "@@ -17,10 +17,9 @@ def _upload_image_to_imgur(image_buffer, client_id):\nwith open(tmp_path, 'wb') as fw:\nfw.write(image_buffer)\nheaders = {'Authorization': f'Client-ID {client_id}'}\n- data... | Python | MIT License | disfactory/disfactory | reorganize spacing |
163,165 | 14.11.2020 15:59:49 | -28,800 | 466390e9b628c4e74cca0c364a636faf34bbedb2 | Wait for Postgres container to be Ready | [
{
"change_type": "MODIFY",
"old_path": "backend/Dockerfile",
"new_path": "backend/Dockerfile",
"diff": "@@ -11,12 +11,13 @@ WORKDIR /Disfactory\nRUN apt-get update\nRUN apt-get install -y binutils libproj-dev gdal-bin\nRUN pip install pipenv\n+RUN pipenv --three\nCOPY . /Disfactory/\n# Dev image\nFR... | Python | MIT License | disfactory/disfactory | Wait for Postgres container to be Ready |
163,161 | 14.11.2020 16:01:23 | -28,800 | de175ae86dd1514a471bb37ce457d59d5e53dfee | setup local mount for db data and backup path | [
{
"change_type": "MODIFY",
"old_path": "backend/.env.sample",
"new_path": "backend/.env.sample",
"diff": "@@ -22,3 +22,6 @@ GOOGLE_MAP_API_KEY=\nDISFACTORY_IMGUR_CLIENT_ID=your_imgur_id\nDISFACTORY_BACKEND_MEDIA_ROOT=\"./images/\"\nDISFACTORY_BACKEND_DOMAIN=\"https://api.disfactory.tw/\"\n+\n+DISFAC... | Python | MIT License | disfactory/disfactory | setup local mount for db data and backup path |
163,178 | 18.11.2020 19:51:05 | -28,800 | 37f2ab947130c325acc4f703a5a0aefda3aa565d | limit document image width 400px | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/document.py",
"new_path": "backend/api/admin/document.py",
"diff": "@@ -128,7 +128,7 @@ class DocumentAdmin(ImportExportModelAdmin, ExportDocMixin):\nimage_html_template = \"\"\"\n<div class=\"imgbox\">\n<a href=\"{image_path}\" target='_blan... | Python | MIT License | disfactory/disfactory | limit document image width 400px |
163,161 | 18.11.2020 22:07:38 | -28,800 | 06ed3fd3a5e4a029c9bb527eb3d6aff4bc2821da | add clean and logs command | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "backend/.dockerignore",
"diff": "+.env\n+.venv/\n+.vscode/\n+images/\n"
},
{
"change_type": "MODIFY",
"old_path": "backend/Makefile",
"new_path": "backend/Makefile",
"diff": "@@ -15,6 +15,18 @@ run:\nrun-dev:\ndocker-compose ... | Python | MIT License | disfactory/disfactory | add clean and logs command |
163,168 | 18.11.2020 22:09:19 | -28,800 | 30fffcea1245f20b6e14dfde590627cde88a460a | fix docker-compose.dev.yaml env | [
{
"change_type": "MODIFY",
"old_path": "backend/docker-compose.dev.yml",
"new_path": "backend/docker-compose.dev.yml",
"diff": "@@ -16,7 +16,7 @@ services:\nDISFACTORY_BACKEND_DEFAULT_DB_NAME: ${DISFACTORY_BACKEND_DEFAULT_DB_NAME}\nDISFACTORY_BACKEND_DEFAULT_DB_USER: ${DISFACTORY_BACKEND_DEFAULT_DB_... | Python | MIT License | disfactory/disfactory | fix docker-compose.dev.yaml env |
163,161 | 18.11.2020 22:46:23 | -28,800 | c441ef94a43433533693caf90670c1bac974d2b8 | let image use poetry | [
{
"change_type": "MODIFY",
"old_path": "backend/Dockerfile",
"new_path": "backend/Dockerfile",
"diff": "@@ -9,16 +9,16 @@ ENV PYTHONUNBUFFERED 1\nWORKDIR /Disfactory\nRUN apt-get update\n-RUN apt-get install -y binutils libproj-dev gdal-bin\n-RUN pip install pipenv\n-RUN pipenv --three\n+RUN apt-get... | Python | MIT License | disfactory/disfactory | let image use poetry |
163,161 | 18.11.2020 22:52:14 | -28,800 | 6bd99d304bbc96c66fff856e517609b4fcfbedfe | CI use poetry | [
{
"change_type": "MODIFY",
"old_path": ".circleci/config.yml",
"new_path": ".circleci/config.yml",
"diff": "@@ -120,12 +120,14 @@ jobs:\npath: ~/Disfactory\n- restore_cache:\nkeys:\n- - disfactory-backend-cache-191118-{{ .Branch }}-{{ checksum \"Pipfile.lock\" }}\n+ - disfactory-backend-cache-191118... | Python | MIT License | disfactory/disfactory | CI use poetry |
163,161 | 22.11.2020 12:57:09 | -28,800 | 065d53d071711b6fbfcd8c27634858250fe81a15 | add other packages | [
{
"change_type": "MODIFY",
"old_path": "backend/poetry.lock",
"new_path": "backend/poetry.lock",
"diff": "@@ -149,6 +149,22 @@ optional = false\npython-versions = \"*\"\nversion = \"0.6\"\n+[[package]]\n+category = \"main\"\n+description = \"XML bomb protection for Python stdlib modules\"\n+name = \... | Python | MIT License | disfactory/disfactory | add other packages |
163,161 | 22.11.2020 15:12:00 | -28,800 | f68d836d026375680f92ae3f3a6a5ccbecba3078 | decouple image from extra .env file | [
{
"change_type": "MODIFY",
"old_path": "backend/docker-compose.dev.yml",
"new_path": "backend/docker-compose.dev.yml",
"diff": "@@ -16,8 +16,8 @@ services:\nDISFACTORY_BACKEND_DEFAULT_DB_NAME: ${DISFACTORY_BACKEND_DEFAULT_DB_NAME}\nDISFACTORY_BACKEND_DEFAULT_DB_USER: ${DISFACTORY_BACKEND_DEFAULT_DB_... | Python | MIT License | disfactory/disfactory | decouple image from extra .env file |
163,161 | 22.11.2020 22:11:57 | -28,800 | 6503e6ea8bc6f6f4ce38c0dff6f05d3fba2df337 | make docker-compose deployment work | [
{
"change_type": "MODIFY",
"old_path": "backend/.env.sample",
"new_path": "backend/.env.sample",
"diff": "@@ -25,3 +25,5 @@ DISFACTORY_BACKEND_DOMAIN=\"https://api.disfactory.tw/\"\nDISFACTORY_PGDATA_PATH=/tmp/disfactory_data/\nDISFACTORY_PGDATA_BACKUP_PATH=/tmp/disfactory_db_dump/\n+\n+DISFACTORY_C... | Python | MIT License | disfactory/disfactory | make docker-compose deployment work |
163,161 | 22.11.2020 17:00:32 | 0 | f274bf5314c04e9e93cf71cc33c3ead570181509 | fix wrong prod script | [
{
"change_type": "MODIFY",
"old_path": "backend/scripts/start_prod.sh",
"new_path": "backend/scripts/start_prod.sh",
"diff": "@@ -6,4 +6,4 @@ ROOT_DIR=\"$SCRIPT_DIR/..\"\ncd $ROOT_DIR\necho \"Waiting postgreSQL ${DISFACTORY_BACKEND_DEFAULT_DB_HOST}:${DISFACTORY_BACKEND_DEFAULT_DB_PORT}\"\n-$ROOT_DIR... | Python | MIT License | disfactory/disfactory | fix wrong prod script |
163,165 | 23.11.2020 18:34:11 | -28,800 | dd842a1049a57f2a7496483cf5eaa4dec10a07ca | Fix Add factory link to document change view and add document link to
factory change view. | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "+from api.models.document import Document\nfrom django.db.models import Max\nfrom django.contrib import admin\n@@ -16,6 +17,8 @@ from api.utils import set_function_attributes\n... | Python | MIT License | disfactory/disfactory | Fix #442: Add factory link to document change view and add document link to
factory change view. |
163,161 | 22.11.2020 14:59:08 | -28,800 | a7e37f38d4a93111442ac43d39113e7fc0cd6b74 | remove sensitive fields from report record | [
{
"change_type": "MODIFY",
"old_path": "backend/api/serializers.py",
"new_path": "backend/api/serializers.py",
"diff": "@@ -114,19 +114,10 @@ class FactorySerializer(ModelSerializer):\nclass ReportRecordSerializer(ModelSerializer):\n- images = ImageSerializer(many=True, read_only=True)\n-\nclass Met... | Python | MIT License | disfactory/disfactory | remove sensitive fields from report record |
163,161 | 25.11.2020 20:40:30 | -28,800 | cd25c553f6ee1a8e79a1e6b2891e3c80a9982805 | avoid worker running migration | [
{
"change_type": "MODIFY",
"old_path": "backend/scripts/start_worker.sh",
"new_path": "backend/scripts/start_worker.sh",
"diff": "@@ -6,4 +6,4 @@ ROOT_DIR=\"$SCRIPT_DIR/..\"\ncd $ROOT_DIR\necho \"Waiting postgreSQL ${DISFACTORY_BACKEND_DEFAULT_DB_HOST}:${DISFACTORY_BACKEND_DEFAULT_DB_PORT}\"\n-$ROOT... | Python | MIT License | disfactory/disfactory | avoid worker running migration |
163,161 | 25.11.2020 20:44:55 | -28,800 | 6fb40dcf2c101c48af4955036a040265e0e89828 | let log level of server and worker adjustable when using docker-compose | [
{
"change_type": "MODIFY",
"old_path": "backend/docker-compose.dev.yml",
"new_path": "backend/docker-compose.dev.yml",
"diff": "@@ -20,7 +20,7 @@ services:\nDISFACTORY_BACKEND_DEFAULT_DB_PORT: 5432 # default port of db image\nDISFACTORY_ALLOWED_HOST: ${DISFACTORY_ALLOWED_HOST}\nDISFACTORY_IMGUR_CLIE... | Python | MIT License | disfactory/disfactory | let log level of server and worker adjustable when using docker-compose |
163,178 | 25.11.2020 20:56:58 | -28,800 | e7fc4227d66dfdffa2d71ac89200eda47cbbf702 | replace admin factory filter:
`cet_report_status`->`cet_review_status` | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "@@ -203,7 +203,7 @@ class FactoryAdmin(\nlist_filter = (\n# XXX: actually not using `factory.created_at` but `repordRecord.created_at`\n(\"created_at\", FactoryWithReportRecord... | Python | MIT License | disfactory/disfactory | replace admin factory filter:
`cet_report_status`->`cet_review_status` |
163,161 | 25.11.2020 22:18:50 | -28,800 | b179e4bf9f4a3d4e94bd46f99b5134ef52476856 | some deploy-friendly setting | [
{
"change_type": "MODIFY",
"old_path": "backend/.env.sample",
"new_path": "backend/.env.sample",
"diff": "@@ -27,3 +27,5 @@ DISFACTORY_PGDATA_PATH=/tmp/disfactory_data/\nDISFACTORY_PGDATA_BACKUP_PATH=/tmp/disfactory_db_dump/\nDISFACTORY_CADDY_STATIC_DIR=/tmp/disfactory/static\n+\n+COMPOSE_PROJECT_NA... | Python | MIT License | disfactory/disfactory | some deploy-friendly setting |
163,161 | 25.11.2020 22:37:28 | -28,800 | 7f85812a2d2fdcdf3f29c564e783d8f928b10adc | fix environment varialbe alignment | [
{
"change_type": "MODIFY",
"old_path": "backend/docker-compose.dev.yml",
"new_path": "backend/docker-compose.dev.yml",
"diff": "@@ -21,6 +21,8 @@ services:\nDISFACTORY_ALLOWED_HOST: ${DISFACTORY_ALLOWED_HOST}\nDISFACTORY_IMGUR_CLIENT_ID: ''\nDISFACTORY_BACKEND_LOG_LEVEL: ${DISFACTORY_BACKEND_LOG_LEV... | Python | MIT License | disfactory/disfactory | fix environment varialbe alignment |
163,168 | 25.11.2020 22:41:16 | -28,800 | 6f1eb9dca0db966eea52aff60de56783c9f4612b | fix: change deprecated Pipfile.lock to poetry.lock | [
{
"change_type": "MODIFY",
"old_path": ".circleci/config.yml",
"new_path": ".circleci/config.yml",
"diff": "@@ -14,7 +14,6 @@ ref:\nworking_directory: ~/Disfactory/backend\nenvironment:\nWORKON_HOME: ~/Disfactory/backend/.venv\n- PIPENV_VENV_IN_PROJECT: true\nversion: 2\njobs:\n@@ -146,7 +145,7 @@ j... | Python | MIT License | disfactory/disfactory | fix: change deprecated Pipfile.lock to poetry.lock |
163,165 | 09.12.2020 18:02:55 | -28,800 | 239a4ec4fbe756adb3485ac47f80caaf144d9bf7 | Add factory.sectname to docx title. (fixed | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/actions/export_docx.py",
"new_path": "backend/api/admin/actions/export_docx.py",
"diff": "@@ -137,7 +137,7 @@ class FactoryReportDocumentWriter:\nself.document_model = model\nself.factory = model.factory\nself.document = document\n- self.fact... | Python | MIT License | disfactory/disfactory | Add factory.sectname to docx title. (fixed #457) |
163,165 | 09.12.2020 22:25:02 | -28,800 | 2d4b33c04af69d323fcf5394117a66391bf8d79c | fixed update landinfo when updating factory model | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/factory.py",
"new_path": "backend/api/admin/factory.py",
"diff": "@@ -17,6 +17,7 @@ from rangefilter.filter import DateRangeFilter\nfrom import_export.admin import ImportExportModelAdmin\nfrom django.urls import reverse\nfrom django.utils.saf... | Python | MIT License | disfactory/disfactory | fixed #460 update landinfo when updating factory model |
163,168 | 16.12.2020 20:47:07 | -28,800 | 0deb5c606987c9f2a54b733c92bedc2c33ac5eaa | feat: add disfactory map link in admin factory page | [
{
"change_type": "MODIFY",
"old_path": "backend/.env.sample",
"new_path": "backend/.env.sample",
"diff": "@@ -22,6 +22,7 @@ GOOGLE_MAP_API_KEY=\nDISFACTORY_IMGUR_CLIENT_ID=your_imgur_id\nDISFACTORY_BACKEND_MEDIA_ROOT=\"./images/\"\nDISFACTORY_BACKEND_DOMAIN=\"https://api.disfactory.tw/\"\n+DISFACTOR... | Python | MIT License | disfactory/disfactory | feat: add disfactory map link in admin factory page |
163,161 | 30.12.2020 21:15:17 | -28,800 | 11219ea505bd368c85ef2a2dd3ff0ec2d3e1ff57 | add csv export action for document | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/document.py",
"new_path": "backend/api/admin/document.py",
"diff": "@@ -5,7 +5,7 @@ from django.urls import reverse\nfrom import_export import resources\nfrom import_export.admin import ImportExportModelAdmin\n-from api.admin.actions import E... | Python | MIT License | disfactory/disfactory | add csv export action for document |
163,168 | 06.01.2021 20:54:57 | -28,800 | 0896449c5a0d6fafc47c78f02d7a5f7427a6c6e6 | feat: update factory.cet_review_status when generating documents | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/actions/generate_docs.py",
"new_path": "backend/api/admin/actions/generate_docs.py",
"diff": "import datetime\nfrom django.db.models import Max\n-from api.models import Document\n+from api.models import Document, Factory\nfrom api.utils impor... | Python | MIT License | disfactory/disfactory | feat: update factory.cet_review_status when generating documents |
163,178 | 06.01.2021 21:09:11 | -28,800 | a06d8a766f8693684c901dc420dc80b37444de32 | ReportRecord's factory on_delete=CASCADE | [
{
"change_type": "MODIFY",
"old_path": "backend/api/models/report_record.py",
"new_path": "backend/api/models/report_record.py",
"diff": "@@ -14,7 +14,7 @@ class ReportRecord(SoftDeleteMixin):\n\"\"\"\nid = models.AutoField(primary_key=True)\n- factory = models.ForeignKey(Factory, on_delete=models.P... | Python | MIT License | disfactory/disfactory | ReportRecord's factory on_delete=CASCADE |
163,178 | 06.01.2021 21:56:38 | -28,800 | 6c9cf69e1241782c89d1ab45eadbf693fa1b298b | set on_delete for Factory related models | [
{
"change_type": "MODIFY",
"old_path": "backend/api/models/image.py",
"new_path": "backend/api/models/image.py",
"diff": "@@ -17,14 +17,14 @@ class Image(SoftDeleteMixin):\n)\nfactory = models.ForeignKey(\nFactory,\n- on_delete=models.PROTECT,\n+ on_delete=models.CASCADE,\nrelated_name=\"images\",\n... | Python | MIT License | disfactory/disfactory | set on_delete for Factory related models |
163,168 | 27.01.2021 20:35:12 | -28,800 | 1f57f010f03153544ff2557f12df2970d4b84478 | refactor(postGIS): use algorithm to calculate radius rather than postGIS | [
{
"change_type": "MODIFY",
"old_path": "backend/api/views/utils.py",
"new_path": "backend/api/views/utils.py",
"diff": "import random\nfrom django.conf import settings\n-from django.contrib.gis.geos import Point\n-from django.contrib.gis.measure import D\n+from django.db.models.functions.math import... | Python | MIT License | disfactory/disfactory | refactor(postGIS): use algorithm to calculate radius rather than postGIS |
163,165 | 27.01.2021 16:17:33 | -28,800 | 4009f5dca2507a3a076d80a832258f5143062604 | Add factories/images/report_records statistics api | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/report_record.py",
"new_path": "backend/api/admin/report_record.py",
"diff": "@@ -14,6 +14,7 @@ class ReportRecordAdmin(admin.ModelAdmin, ExportCsvMixin):\n\"others\",\n\"id\",\n)\n+ raw_id_fields = (\"factory\",)\nlist_filter = (\"action_typ... | Python | MIT License | disfactory/disfactory | Add factories/images/report_records statistics api #480 |
163,165 | 27.01.2021 22:46:16 | -28,800 | 5d838a43765eb9bf40d2e29d131c2b9c58fd5751 | Add total statistics api | [
{
"change_type": "MODIFY",
"old_path": "backend/api/models/mixins.py",
"new_path": "backend/api/models/mixins.py",
"diff": "-import django.db.models as models\n+from django.contrib.gis.db import models\nfrom django.db.models import query\nfrom django.utils import timezone\n"
},
{
"change_typ... | Python | MIT License | disfactory/disfactory | Add total statistics api #480 |
163,165 | 31.01.2021 21:11:00 | -28,800 | cdc824e2df9ef7befadf4883d03e471cdde268de | Set up automatic testing with GitHub Actions | [
{
"change_type": "ADD",
"old_path": null,
"new_path": ".github/workflows/tests.yml",
"diff": "+name: Tests\n+on:\n+ push:\n+ paths-ignore:\n+ - 'docs/**'\n+ branches:\n+ - master\n+\n+ pull_request:\n+ paths-ignore:\n+ - 'docs/**'\n+ branches:\n+ - \"**\"\n+\n+jobs:\n+ tests:\n+ services:\n+ # Label... | Python | MIT License | disfactory/disfactory | Set up automatic testing with GitHub Actions |
163,165 | 06.02.2021 16:19:48 | -28,800 | 76784e7fcf8637069e3dcf9cbad1c2179e0de77d | when the api /api/statistics/total calculates report_records, the same factory will only be counted once | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "backend/api/migrations/0032_add_index_to_factory_townname_field.py",
"diff": "+# Generated by Django 2.2.13 on 2021-02-06 08:11\n+\n+from django.db import migrations, models\n+\n+\n+class Migration(migrations.Migration):\n+\n+ dependencies = [\n... | Python | MIT License | disfactory/disfactory | when the api /api/statistics/total calculates report_records, the same factory will only be counted once |
163,161 | 28.01.2021 20:21:29 | -28,800 | 58cf5d2a7b25d2320b010b885a84bd89cdbb1c51 | add a hint about how to restore | [
{
"change_type": "MODIFY",
"old_path": "backend/Makefile",
"new_path": "backend/Makefile",
"diff": "@@ -35,6 +35,7 @@ run-db:\n.PHONY: run-db-backup\nrun-db-backup:\ndocker-compose exec db bash -c 'pg_dump -d $(DISFACTORY_BACKEND_DEFAULT_DB_NAME) -U $(DISFACTORY_BACKEND_DEFAULT_DB_USER) -F t > /tmp/... | Python | MIT License | disfactory/disfactory | add a hint about how to restore |
163,161 | 09.02.2021 21:06:24 | -28,800 | 4dcb70e918ddf47a2c61930212491a2f48935f80 | remove unused image api | [
{
"change_type": "MODIFY",
"old_path": "backend/api/urls.py",
"new_path": "backend/api/urls.py",
"diff": "@@ -25,9 +25,6 @@ from .views import (\nget_images_count_by_townname,\nget_report_records_count_by_townname,\nget_statistics_total,\n- # to be deprecated\n- post_image,\n- post_factory_image,\n)... | Python | MIT License | disfactory/disfactory | remove unused image api |
163,161 | 10.02.2021 00:18:41 | -28,800 | 8610764f4f9145119dbbcc7d6b3acf5252e437dc | use prefetch for query factories with serializer | [
{
"change_type": "MODIFY",
"old_path": "backend/api/serializers.py",
"new_path": "backend/api/serializers.py",
"diff": "@@ -15,6 +15,12 @@ from .models import Factory, Image, ReportRecord, Document\nVALID_FACTORY_TYPES = [t[0] for t in Factory.factory_type_list]\n+def _get_latest_time_or_none(objs):... | Python | MIT License | disfactory/disfactory | use prefetch for query factories with serializer |
163,161 | 10.02.2021 00:40:20 | -28,800 | dad33614cfc13667e96271127737c243ce94eaf2 | slightly refactor statistics view function | [
{
"change_type": "MODIFY",
"old_path": "backend/api/views/statistics_r.py",
"new_path": "backend/api/views/statistics_r.py",
"diff": "@@ -41,7 +41,6 @@ def _generate_factories_query_set(townname, source, display_status):\nfactory_id_list = list(map(lambda item: item.factory_id, docs))\nqueryset = Fa... | Python | MIT License | disfactory/disfactory | slightly refactor statistics view function |
163,168 | 24.02.2021 21:34:54 | -28,800 | fb364fcc79c4d556390701c7919dac3e4b8b96fa | refactor: remove gis | [
{
"change_type": "MODIFY",
"old_path": "backend/api/models/image.py",
"new_path": "backend/api/models/image.py",
"diff": "import uuid\n-from django.contrib.gis.db import models\n+from django.db import models\nfrom .mixins import SoftDeleteMixin\nfrom .factory import Factory\n"
},
{
"change_t... | Python | MIT License | disfactory/disfactory | refactor: remove gis |
163,168 | 03.03.2021 21:13:20 | -28,800 | 8481f8407f37d60e143d295e49dbf3782550603c | chore: remove unused frontend ci job | [
{
"change_type": "MODIFY",
"old_path": ".circleci/config.yml",
"new_path": ".circleci/config.yml",
"diff": "ref:\n- frontend_docker_default: &frontend_docker_default\n- docker:\n- - image: circleci/node:lts\n- working_directory: ~/Disfactory\nbackend_docker_default: &backend_docker_default\ndocker:\... | Python | MIT License | disfactory/disfactory | chore: remove unused frontend ci job |
163,168 | 03.03.2021 21:09:54 | -28,800 | 4cd2522b00bc5366e7659d6332099364c4ab1ed7 | refactor: remove gis usage in models and migrations | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "backend/api/migrations/0033_remove_factory_point.py",
"diff": "+# Generated by Django 2.2.8 on 2020-01-03 08:22\n+\n+from django.db import migrations\n+\n+\n+class Migration(migrations.Migration):\n+\n+ dependencies = [\n+ (\"api\", \"0032_add_i... | Python | MIT License | disfactory/disfactory | refactor: remove gis usage in models and migrations |
163,165 | 17.03.2021 21:14:41 | -28,800 | 904ce871f7845e8eb9e21054ce49ccfdf16a8fcc | Add deletehash to image model and image api | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "backend/api/migrations/0034_add_image_deletehash.py",
"diff": "+# Generated by Django 2.2.13 on 2021-03-17 13:05\n+\n+from django.db import migrations, models\n+\n+\n+class Migration(migrations.Migration):\n+\n+ dependencies = [\n+ ('api', '0033... | Python | MIT License | disfactory/disfactory | Add deletehash to image model and image api |
163,168 | 24.03.2021 21:24:28 | -28,800 | 04b6b3b0c49396dd7d511352b6921a7587ead8b0 | refactor: throw error if dont have cityCode | [
{
"change_type": "MODIFY",
"old_path": "backend/easymap.py",
"new_path": "backend/easymap.py",
"diff": "@@ -31,7 +31,7 @@ def get_point_city(sess, x, y):\nif resp.status_code != requests.codes.ok:\nraise WebRequestError(\"Failed getting city code\", resp.status_code, resp.text)\ntry:\n- return resp.... | Python | MIT License | disfactory/disfactory | refactor: throw error if dont have cityCode |
163,168 | 24.03.2021 22:15:02 | -28,800 | 2b1e86dfd4311948382a7e7f46283c9680cf2e55 | feat: export new field 'townname', 'lat', 'lng' in document csv | [
{
"change_type": "MODIFY",
"old_path": "backend/api/admin/actions/__init__.py",
"new_path": "backend/api/admin/actions/__init__.py",
"diff": "-from api.admin.actions.export_csv import ExportCsvMixin\n+from api.admin.actions.export_csv import ExportCsvMixin, ExportDocumentCsvMixin\nfrom api.admin.act... | Python | MIT License | disfactory/disfactory | feat: export new field 'townname', 'lat', 'lng' in document csv |
163,165 | 07.04.2021 19:51:14 | -28,800 | fb624ed6e598efbeaecec11512e814a9bad6538f | add source field to /factories API | [
{
"change_type": "MODIFY",
"old_path": "backend/api/serializers.py",
"new_path": "backend/api/serializers.py",
"diff": "@@ -51,6 +51,7 @@ class FactorySerializer(ModelSerializer):\n\"townname\",\n\"sectname\",\n\"sectcode\",\n+ \"source\",\n\"factory_type\",\n\"type\",\n\"cet_report_status\",\n"
}... | Python | MIT License | disfactory/disfactory | add source field to /factories API |
163,168 | 07.04.2021 21:16:07 | -28,800 | f23a6ab4df80829d1c7514ed6d6e5adb8ef37e6e | feat: use official postgres image | [
{
"change_type": "MODIFY",
"old_path": "backend/docker-compose-win.yml",
"new_path": "backend/docker-compose-win.yml",
"diff": "@@ -18,7 +18,7 @@ services:\nDISFACTORY_BACKEND_DEFAULT_DB_PORT: 5432\ndb:\n- image: mdillon/postgis:11-alpine\n+ image: postgres:12\nvolumes:\n- postgres_data:/var/lib/pos... | Python | MIT License | disfactory/disfactory | feat: use official postgres image |
163,165 | 07.04.2021 22:28:21 | -28,800 | 20bb1967987d560ce5494ca3587e07e7bbe53482 | remove deletehash empty check | [
{
"change_type": "MODIFY",
"old_path": "backend/api/views/factory_image_c.py",
"new_path": "backend/api/views/factory_image_c.py",
"diff": "@@ -56,10 +56,6 @@ def post_factory_image_url(request, factory_id):\nLOGGER.error(f\"post_factory_image_url received no url from {user_ip}\")\nreturn HttpRespon... | Python | MIT License | disfactory/disfactory | remove deletehash empty check |
163,178 | 07.04.2021 21:49:26 | -28,800 | 7f8317942649483ff3ef16f2ffdf1e6911887229 | loose test condition when import test_data | [
{
"change_type": "ADD",
"old_path": null,
"new_path": "backend/conftest.py",
"diff": "+import json\n+from collections import Counter\n+from typing import Union\n+\n+\n+def pytest_assertrepr_compare(config, op, left, right):\n+ if (isinstance(left, Unordered) or isinstance(right, Unordered)) and op =... | Python | MIT License | disfactory/disfactory | loose test condition when import test_data |
163,178 | 07.04.2021 22:24:42 | -28,800 | 92c52009e41fe8f200005bb6d147a544776db90f | replace self.assert... | [
{
"change_type": "MODIFY",
"old_path": "backend/.vscode/settings.json",
"new_path": "backend/.vscode/settings.json",
"diff": "\"python.linting.enabled\": true,\n\"python.linting.pylintArgs\": [\n\"--load-plugins=pylint_django\",\n- ]\n+ ],\n+ \"python.pythonPath\": \"/usr/bin/python3\"\n}\n"
},
... | Python | MIT License | disfactory/disfactory | replace self.assert... |
163,178 | 09.04.2021 10:32:13 | -28,800 | 070479ec34281ff7f5417d4e48c843abb5135e7d | move test.py to tests/ | [
{
"change_type": "MODIFY",
"old_path": "backend/api/views/tests/test_image_c.py",
"new_path": "backend/api/views/tests/test_image_c.py",
"diff": "@@ -16,11 +16,13 @@ def test_post_image_url(client):\nfake_datetime_str,\n\"%Y:%m:%d %H:%M:%S\",\n).replace(tzinfo=timezone(timedelta(hours=8)))\n+ fake_d... | Python | MIT License | disfactory/disfactory | move test.py to tests/ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.