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
05.01.2020 18:27:28
-28,800
0078987d2948b1f08e4d18c1180fa9d1e10dbad3
config django q cluster
[ { "change_type": "MODIFY", "old_path": "backend/gis_project/settings.py", "new_path": "backend/gis_project/settings.py", "diff": "@@ -60,6 +60,7 @@ INSTALLED_APPS = [\n# 3rd party\n\"rest_framework\",\n\"corsheaders\",\n+ \"django_q\",\n# Local\n\"users.apps.UsersConfig\",\n@@ -186,3 +187,15 @@ TAIW...
Python
MIT License
disfactory/disfactory
config django q cluster
163,161
05.01.2020 18:27:48
-28,800
6d0404529d8d7c5c1e515a4103e7f919061af5a6
add update_landcode task
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/tasks.py", "diff": "+from .models import Factory\n+import easymap\n+\n+\n+def update_landcode(factory_id):\n+ factory = Factory.objects.get(pk=factory_id)\n+ land_number = easymap.get_land_number(factory.lng, factory.lat)['landno']\n...
Python
MIT License
disfactory/disfactory
add update_landcode task
163,161
05.01.2020 18:28:05
-28,800
b7159cef0d561c10a458bb1fb972aa9acbb3a834
async get land code when create factory
[ { "change_type": "MODIFY", "old_path": "backend/api/views/factories_cr.py", "new_path": "backend/api/views/factories_cr.py", "diff": "@@ -3,18 +3,17 @@ from typing import List\nimport json\nimport datetime\n+from django.conf import settings\nfrom django.http import HttpResponse, JsonResponse\nfrom d...
Python
MIT License
disfactory/disfactory
async get land code when create factory
163,176
28.12.2019 20:46:03
-28,800
7211b42e9aaea5e313518d9d1b52cc36bf2a6d63
Add webkit overflow scrolling attribute
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppModal.vue", "new_path": "frontend/src/components/AppModal.vue", "diff": "@@ -38,6 +38,7 @@ export default createComponent({\n.app-modal-component {\nz-index: 997;\nposition: fixed;\n+ -webkit-overflow-scrolling: touch;\njustify-conte...
Python
MIT License
disfactory/disfactory
Add webkit overflow scrolling attribute
163,176
28.12.2019 20:46:20
-28,800
38eb7449e35ecc7318f792a298d961e8c912973b
Polish app modal sizing
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AboutModal.vue", "new_path": "frontend/src/components/AboutModal.vue", "diff": "@@ -53,9 +53,9 @@ export default createComponent({\n@import '@/styles/variables';\n.about-dialog-container .app-modal {\n- top: 47px;\n- max-height: calc(10...
Python
MIT License
disfactory/disfactory
Polish app modal sizing
163,176
25.12.2019 22:01:28
-28,800
c065e082abad33ab6a8e3277e1f50d27156c7c08
Update with new pin icons
[ { "change_type": "ADD", "old_path": null, "new_path": "frontend/public/images/marker-C.svg", "diff": "+<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"34\" height=\"43\" viewBox=\"0 0 34 43\">\n+ <g fill=\"none\" fill-rule=\"evenodd\">\n+ <path fill=\"#FEFEFE\" d=\"M16.994 42.78c-.619 0-1.192-.273...
Python
MIT License
disfactory/disfactory
Update with new pin icons
163,176
25.12.2019 22:41:56
-28,800
b70c1e4bc51c832930f252c519274e92e3a9549f
Update factory status filter
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/map.ts", "new_path": "frontend/src/lib/map.ts", "diff": "@@ -19,15 +19,19 @@ import { MapOptions } from 'ol/PluggableMap'\nimport IconOrigin from 'ol/style/IconOrigin'\nconst factoryStatusImageMap = {\n- D: '/images/marker-green.svg',\n- F: '/...
Python
MIT License
disfactory/disfactory
Update factory status filter
163,161
08.01.2020 20:27:29
-28,800
93221c7ab25577743bb759e807d9add5a688e6c8
add upload_image tasks
[ { "change_type": "MODIFY", "old_path": "backend/api/tasks.py", "new_path": "backend/api/tasks.py", "diff": "-from .models import Factory\n+import requests\nimport easymap\n+from .models import Factory, Image\n+\n+\n+\n+def _upload_image_to_imgur(image_buffer, client_id):\n+ headers = {'Authorization...
Python
MIT License
disfactory/disfactory
add upload_image tasks
163,161
08.01.2020 20:28:10
-28,800
0b9b005d7ec94ebb2bc63e0aaca5b2c23efa14ba
let upload factory image use async upload
[ { "change_type": "MODIFY", "old_path": "backend/api/views/factory_image_c.py", "new_path": "backend/api/views/factory_image_c.py", "diff": "from django.conf import settings\nfrom django.http import HttpResponse, JsonResponse\nfrom django.db import transaction\n+import django_q.tasks\n+\nfrom rest_fr...
Python
MIT License
disfactory/disfactory
let upload factory image use async upload
163,161
08.01.2020 20:28:38
-28,800
a44862b3426107ac7fbef1daae5a7d4508c85e8a
let upload image use async upload
[ { "change_type": "MODIFY", "old_path": "backend/api/views/image_c.py", "new_path": "backend/api/views/image_c.py", "diff": "from django.conf import settings\nfrom django.http import HttpResponse, JsonResponse\n+import django_q.tasks\nfrom rest_framework.decorators import api_view\nfrom ..models impo...
Python
MIT License
disfactory/disfactory
let upload image use async upload
163,161
08.01.2020 20:28:49
-28,800
3d1d62516cd2a69fad5f4e46e95197167b9e765f
remove legacy image upload util
[ { "change_type": "MODIFY", "old_path": "backend/api/views/tests/test_utils.py", "new_path": "backend/api/views/tests/test_utils.py", "diff": "@@ -11,7 +11,6 @@ import requests\nfrom ..utils import (\n_get_nearby_factories,\n- _upload_image,\n_get_image_original_date,\n_is_image,\n)\n@@ -19,14 +18,6 ...
Python
MIT License
disfactory/disfactory
remove legacy image upload util
163,176
08.01.2020 21:04:36
-28,800
f8b1a6c09a1c1f29d2b032ff89b87444c7c98cd8
Implement new factory filter
[ { "change_type": "RENAME", "old_path": "frontend/public/images/marker-CN.svg", "new_path": "frontend/public/images/marker-EXISTING_COMPLETE.svg", "diff": "" }, { "change_type": "RENAME", "old_path": "frontend/public/images/marker-IN.svg", "new_path": "frontend/public/images/marker-EX...
Python
MIT License
disfactory/disfactory
Implement new factory filter
163,162
08.01.2020 21:54:36
-28,800
cd36b547573d6b17578ab20c1908e94f464e5798
Fix spell for ga event
[ { "change_type": "MODIFY", "old_path": "frontend/src/App.vue", "new_path": "frontend/src/App.vue", "diff": "@@ -131,7 +131,7 @@ export default createComponent({\nappState.factoryData = factory\nappState.formMode = 'edit'\nappState.factoryFormOpen = true\n- pageview('/emit')\n+ pageview('/edit')\n}\n...
Python
MIT License
disfactory/disfactory
Fix spell for ga event
163,176
08.01.2020 21:55:36
-28,800
e55f329f13b3c486317db20e3004ebbe4bd2c789
Support different button colors
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppButton.vue", "new_path": "frontend/src/components/AppButton.vue", "diff": "<template>\n<button\n- :class=\"{ outline, disabled, rect }\"\n+ :class=\"{ outline, disabled, rect, blue: color === 'blue', red: color === 'red' }\"\n@click=...
Python
MIT License
disfactory/disfactory
Support different button colors
163,176
08.01.2020 22:10:30
-28,800
21f29b2406fc3b6b3d1d6fb4db7f9e3ffb4016eb
Add status banner to form page top
[ { "change_type": "ADD", "old_path": null, "new_path": "frontend/public/images/marker-white.svg", "diff": "+<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"13\" height=\"16\" viewBox=\"0 0 13 16\">\n+ <defs>\n+ <path id=\"a\" d=\"M0 0h13v16H0z\"/>\n+ </d...
Python
MIT License
disfactory/disfactory
Add status banner to form page top
163,176
15.01.2020 19:55:35
-28,800
33dd97821d064a024c409755864384f23afd5c25
Update pin colors
[ { "change_type": "MODIFY", "old_path": "frontend/public/images/marker-EXISTING_COMPLETE.svg", "new_path": "frontend/public/images/marker-EXISTING_COMPLETE.svg", "diff": "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"34\" height=\"43\" viewBox=\"0 0 34...
Python
MIT License
disfactory/disfactory
Update pin colors
163,161
15.01.2020 19:52:01
-28,800
d88ebdf97b296cfb6a24757ec6d9ec8436bc09d7
rename before_2016 to before_release, and add a source field
[ { "change_type": "MODIFY", "old_path": "backend/api/serializers.py", "new_path": "backend/api/serializers.py", "diff": "@@ -40,7 +40,7 @@ class FactorySerializer(ModelSerializer):\n\"factory_type\",\n\"type\",\n\"cet_report_status\",\n- \"before_2016\",\n+ \"before_release\",\n\"images\",\n\"reporte...
Python
MIT License
disfactory/disfactory
rename before_2016 to before_release, and add a source field
163,161
15.01.2020 19:56:35
-28,800
cd8e9d84efa46675f8cab61d7ae88fa36a1ce627
modify old data to have correct source
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/migrations/0011_change_old_data_source.py", "diff": "+from django.db import migrations, transaction\n+\n+\n+def forward_func(apps, schema_editor):\n+ Factory = apps.get_model(\"api\", \"Factory\")\n+\n+ # get the originally added fac...
Python
MIT License
disfactory/disfactory
modify old data to have correct source
163,176
15.01.2020 20:03:23
-28,800
68dfac0563da7cc8ee58b614c8039e059679166b
Update before_2016 to before_release
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/map.ts", "new_path": "frontend/src/lib/map.ts", "diff": "@@ -33,7 +33,7 @@ export function getFactoryStatus (factory: FactoryData) {\nreturn FactoryStatus.REPORTED\n}\n- if (factory.before_2016) {\n+ if (factory.before_release) {\nif (factory....
Python
MIT License
disfactory/disfactory
Update before_2016 to before_release
163,176
15.01.2020 20:37:51
-28,800
b0fa8940415c20c91ae50cf65a42f4936320f79c
Add update factory success modal
[ { "change_type": "MODIFY", "old_path": "frontend/src/App.vue", "new_path": "frontend/src/App.vue", "diff": ":open=\"appState.createFactorySuccessModalOpen\"\n:dismiss=\"() => setCreateFactorySuccessModal(false)\"\n/>\n+ <update-factory-success-modal\n+ :open=\"modalState.updateFactorySuccessModal\"\...
Python
MIT License
disfactory/disfactory
Add update factory success modal
163,176
15.01.2020 21:07:22
-28,800
46212b0fb841e5bbd144d31bfab1d5781ed23304
Extract modal hooks
[ { "change_type": "MODIFY", "old_path": "frontend/src/App.vue", "new_path": "frontend/src/App.vue", "diff": "<filter-modal :open=\"appState.filterModalOpen\" :dismiss=\"closeFilterModal\" />\n<create-factory-success-modal\n- :open=\"appState.createFactorySuccessModalOpen\"\n- :dismiss=\"() => setCrea...
Python
MIT License
disfactory/disfactory
Extract modal hooks
163,176
15.01.2020 21:20:04
-28,800
153b737d05dcb5cc8456d4de5669393c7a5e5b9a
Expoes sidebar state to modalState
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/hooks.ts", "new_path": "frontend/src/lib/hooks.ts", "diff": "import { ref, Ref, provide, inject, reactive } from '@vue/composition-api'\n+import { useGA } from './useGA'\nexport const useModal = (defaultOpen = false): [Ref<boolean>, { open: ()...
Python
MIT License
disfactory/disfactory
Expoes sidebar state to modalState
163,162
15.01.2020 21:52:46
-28,800
f7146555f32e8e49a1ebd2f4338c5827db8c1bd3
Add env VUE_APP_BASE_URL
[ { "change_type": "ADD", "old_path": null, "new_path": "frontend/.env", "diff": "+VUE_APP_BASE_URL=https://api.disfactory.tw/api\n" }, { "change_type": "MODIFY", "old_path": "frontend/src/api/index.ts", "new_path": "frontend/src/api/index.ts", "diff": "import axios from 'axios'\ni...
Python
MIT License
disfactory/disfactory
Add env VUE_APP_BASE_URL
163,176
15.01.2020 22:08:33
-28,800
4e68ff826ba32844bf89528ba7b49102b0129879
Fix factory status not parsed properly
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/FormPage.vue", "new_path": "frontend/src/components/FormPage.vue", "diff": "@@ -229,7 +229,7 @@ export default createComponent({\ninitialFactoryState.imageUrls = (factoryData.images as FactoryImage[]).map(image => image.image_path)\nini...
Python
MIT License
disfactory/disfactory
Fix factory status not parsed properly
163,162
15.01.2020 21:34:59
-28,800
9c8e663c6f6061da0d023a9d26a82b5e4e3a044c
Fix accuracyFeature block popup
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/map.ts", "new_path": "frontend/src/lib/map.ts", "diff": "@@ -373,7 +373,11 @@ export class OLMap {\nmap.on('click', async (event) => {\nif (handler.onClicked) {\nconst [lng, lat] = transform(event.coordinate, 'EPSG:3857', 'EPSG:4326')\n- const...
Python
MIT License
disfactory/disfactory
Fix accuracyFeature block popup
163,162
15.01.2020 22:10:26
-28,800
532b7d1bd357f874c220e07a8ab54ec7f1bda392
Add deploy production on CI
[ { "change_type": "MODIFY", "old_path": ".circleci/config.yml", "new_path": ".circleci/config.yml", "diff": "@@ -54,7 +54,7 @@ jobs:\nroot: frontend\npaths:\n- dist\n- frontend-deploy:\n+ frontend-dev-deploy:\n<<: *frontend_docker_default\nsteps:\n- checkout\n@@ -73,6 +73,45 @@ jobs:\n- run:\nname: D...
Python
MIT License
disfactory/disfactory
Add deploy production on CI
163,162
15.01.2020 22:22:08
-28,800
bf3b7a88a77bbd55eb773be0896502a54bd059d9
Use modern build
[ { "change_type": "MODIFY", "old_path": "frontend/package.json", "new_path": "frontend/package.json", "diff": "\"private\": true,\n\"scripts\": {\n\"serve\": \"vue-cli-service serve\",\n- \"build\": \"vue-cli-service build\",\n+ \"build\": \"vue-cli-service build --modern\",\n\"test:unit\": \"vue-cli...
Python
MIT License
disfactory/disfactory
Use modern build
163,162
15.01.2020 22:42:52
-28,800
bc86a68949bcc32c216248957210636da1726438
Use correct ssh key
[ { "change_type": "MODIFY", "old_path": ".circleci/config.yml", "new_path": ".circleci/config.yml", "diff": "@@ -108,7 +108,7 @@ jobs:\necho \"disfactory.tw\" > frontend/dist/CNAME\n- add_ssh_keys:\nfingerprints:\n- - \"15:64:e1:a2:bf:d0:8e:4b:4f:f1:22:2d:62:18:1b:ad\"\n+ - \"fe:c1:b9:5d:6d:ac:1b:cd:...
Python
MIT License
disfactory/disfactory
Use correct ssh key
163,176
24.01.2020 16:10:11
-28,800
d7f6d8c08bd2c9e4868645f63085ceb126b8ce46
Register poupData as global state
[ { "change_type": "MODIFY", "old_path": "frontend/src/App.vue", "new_path": "frontend/src/App.vue", "diff": "@@ -64,6 +64,7 @@ import { MapFactoryController } from './lib/map'\nimport { MainMapControllerSymbol } from './symbols'\nimport { FactoryData } from './types'\nimport { provideModalState, useM...
Python
MIT License
disfactory/disfactory
Register poupData as global state
163,176
24.01.2020 16:25:38
-28,800
24c6012bcac13e7104ff545df7ecf5bfc1d70691
Extract filterModal state to modal state
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/hooks.ts", "new_path": "frontend/src/lib/hooks.ts", "diff": "@@ -32,7 +32,8 @@ export const provideModalState = () => {\nsafetyModalOpen: false,\ngettingStartedModalOpen: localStorage.getItem('use-app') !== 'true',\n- sidebarOpen: false\n+ sid...
Python
MIT License
disfactory/disfactory
Extract filterModal state to modal state
163,176
24.01.2020 16:49:32
-28,800
9d3551956922c63179fdb18e14b5e5678d89a09c
Wow, just hide all complexity in another file
[ { "change_type": "MODIFY", "old_path": "frontend/src/App.vue", "new_path": "frontend/src/App.vue", "diff": "<safety-modal :open=\"modalState.safetyModalOpen\" :dismiss=\"modalActions.closeSafetyModal\" />\n<Map\n- :openCreateFactoryForm=\"openCreateFactoryForm\"\n- :openEditFactoryForm=\"openEditFac...
Python
MIT License
disfactory/disfactory
Wow, just hide all complexity in another file
163,176
24.01.2020 17:22:52
-28,800
f001589d25b7a1644205c61880dde18f821d3f6d
Use appState.factoryData to render popup
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/FormPage.vue", "new_path": "frontend/src/components/FormPage.vue", "diff": "@@ -133,7 +133,7 @@ import { MainMapControllerSymbol } from '../symbols'\nimport { useBackPressed } from '../lib/useBackPressed'\nimport { useGA } from '@/lib/u...
Python
MIT License
disfactory/disfactory
Use appState.factoryData to render popup
163,176
24.01.2020 17:37:51
-28,800
507e5993059eb91c50de03845c00cd70a91d1a26
Refactor finishImagesUpload slightly
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/FormPage.vue", "new_path": "frontend/src/components/FormPage.vue", "diff": "@@ -372,10 +372,11 @@ export default createComponent({\n// TODO: refactor into sepearte method...\ntry {\nconst factory = { ...props.factoryData } as FactoryDat...
Python
MIT License
disfactory/disfactory
Refactor finishImagesUpload slightly
163,176
24.01.2020 17:43:14
-28,800
65758244ce0b7fb93d83ff2c0f8c8b28fd4363dc
Refresh feature style when factory updated
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/map.ts", "new_path": "frontend/src/lib/map.ts", "diff": "@@ -136,6 +136,12 @@ export class MapFactoryController {\npublic updateFactory (id: string, factory: FactoryData) {\nthis.factoryMap.set(id, factory)\n+\n+ // Update factory feature styl...
Python
MIT License
disfactory/disfactory
Refresh feature style when factory updated
163,161
19.02.2020 21:39:41
-28,800
d2038f99ae4ed8dd280786d98560b060aa1c43a1
use absolute path for migration
[ { "change_type": "MODIFY", "old_path": "backend/api/migrations/0002_load_initial_data.py", "new_path": "backend/api/migrations/0002_load_initial_data.py", "diff": "+import os\nimport sys\nimport csv\nfrom datetime import datetime\nfrom django.db import migrations\n+from django.conf import settings\n...
Python
MIT License
disfactory/disfactory
use absolute path for migration
163,161
19.02.2020 21:42:00
-28,800
93583395e5a71b936eda04de4acd9700b1fdd3df
fix docker-compose dev bug
[ { "change_type": "MODIFY", "old_path": "backend/docker-compose.yml", "new_path": "backend/docker-compose.yml", "diff": "@@ -3,7 +3,6 @@ version: '3.7'\nservices:\nweb:\nbuild: .\n- command: python -m gunicorn -c gunicorn.conf.py gis_project.wsgi\nvolumes:\n- .:/Disfactory\nports:\n@@ -19,6 +18,12 @@...
Python
MIT License
disfactory/disfactory
fix docker-compose dev bug
163,162
19.02.2020 21:56:13
-28,800
9839c9fda3d4461cb41e45b4b229a1817e2d9300
Add data-label to button for GTM
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppModal.vue", "new_path": "frontend/src/components/AppModal.vue", "diff": "<div class=\"app-modal-component\"\n:class=\"{ open }\"\n>\n- <div class=\"app-modal-backdrop\" @click=\"dismiss\" />\n+ <div class=\"app-modal-backdrop\" @clic...
Python
MIT License
disfactory/disfactory
Add data-label to button for GTM
163,176
16.02.2020 14:11:19
-28,800
85fe51ce472ccc856110dc78fc7dae14307d5a8f
Add basic tutorial modal structure
[ { "change_type": "MODIFY", "old_path": "frontend/src/App.vue", "new_path": "frontend/src/App.vue", "diff": "<contact-modal :open=\"modalState.contactModalOpen\" :dismiss=\"modalActions.closeContactModal\" />\n<getting-started-modal :open=\"modalState.gettingStartedModalOpen\" :dismiss=\"modalActions...
Python
MIT License
disfactory/disfactory
Add basic tutorial modal structure
163,176
16.02.2020 14:35:17
-28,800
9256ec93eca1f2d0d9fcf6f6d493c98b8a12a6d9
Add tutorial slide show images
[ { "change_type": "ADD", "old_path": "frontend/public/images/tutorial/new_1.png", "new_path": "frontend/public/images/tutorial/new_1.png", "diff": "Binary files /dev/null and b/frontend/public/images/tutorial/new_1.png differ\n" }, { "change_type": "ADD", "old_path": "frontend/public/imag...
Python
MIT License
disfactory/disfactory
Add tutorial slide show images
163,176
19.02.2020 22:06:10
-28,800
4fbf59ca9960381e5b96712b284f7d5b5031026b
Add about link
[ { "change_type": "MODIFY", "old_path": "frontend/src/App.vue", "new_path": "frontend/src/App.vue", "diff": "@@ -105,6 +105,7 @@ export default createComponent({\nmodalActions.openTutorialModal,\nmodalActions.openSafetyModal,\nmodalActions.openContactModal,\n+ 'https://about.disfactory.tw',\nmodalAct...
Python
MIT License
disfactory/disfactory
Add about link
163,161
12.02.2020 16:31:43
-28,800
a741901de225b71ad2807157a0692690e9d38c1b
add relations for models
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/migrations/0012_auto_20200212_0831.py", "diff": "+# Generated by Django 2.2.8 on 2020-02-12 08:31\n+\n+from django.db import migrations, models\n+import django.db.models.deletion\n+\n+\n+class Migration(migrations.Migration):\n+\n+ d...
Python
MIT License
disfactory/disfactory
add relations for models
163,161
12.02.2020 17:12:37
-28,800
db9132d7effa8b01274d8dfe20249cf33dae1ada
add factory report record view
[ { "change_type": "MODIFY", "old_path": "backend/api/serializers.py", "new_path": "backend/api/serializers.py", "diff": "@@ -81,3 +81,22 @@ class FactorySerializer(ModelSerializer):\nif value < settings.TAIWAN_MIN_LONGITUDE or value > settings.TAIWAN_MAX_LONGITUDE:\nraise ValidationError(f\"longitude...
Python
MIT License
disfactory/disfactory
add factory report record view
163,161
26.02.2020 19:47:57
-28,800
7ed1a444827cef8df74386e520e7d1855eb0fba8
setup custom CORS
[ { "change_type": "MODIFY", "old_path": "backend/.env.sample", "new_path": "backend/.env.sample", "diff": "@@ -5,6 +5,7 @@ DISFACTORY_BACKEND_DEFAULT_DB_HOST=db\nDISFACTORY_BACKEND_DEFAULT_DB_PORT=5432\nDISFACTORY_ALLOWED_HOST=host_url\n+DISFACTORY_BACKEND_CORS_ORIGIN_WHITELIST=\"https://other.disfac...
Python
MIT License
disfactory/disfactory
setup custom CORS
163,161
26.02.2020 22:17:36
-28,800
5fd7b5f9a50aac5f2b074b8719c7c09bcd703076
modify tasks to use file path
[ { "change_type": "MODIFY", "old_path": "backend/api/tasks.py", "new_path": "backend/api/tasks.py", "diff": "+import os\n+import logging\n+\nimport requests\nimport easymap\nfrom .models import Factory, Image\n+LOGGER = logging.getLogger(__name__)\ndef _upload_image_to_imgur(image_buffer, client_id):...
Python
MIT License
disfactory/disfactory
modify tasks to use file path
163,167
03.03.2020 17:33:42
0
530746f037621cfb0ab81b1eebb7e34c94ac7a10
extend logger
[ { "change_type": "MODIFY", "old_path": "backend/api/views/factories_cr.py", "new_path": "backend/api/views/factories_cr.py", "diff": "@@ -82,10 +82,12 @@ def get_nearby_or_create_factories(request):\nreturn JsonResponse(serializer.data, safe=False)\nelif request.method == \"POST\":\npost_body = json...
Python
MIT License
disfactory/disfactory
extend logger
163,161
04.03.2020 21:59:23
-28,800
754b8d78fa2ef7c9f29c7577bc2aa834e64ebc09
use django_q 1.0.2
[ { "change_type": "MODIFY", "old_path": "backend/Pipfile", "new_path": "backend/Pipfile", "diff": "@@ -18,7 +18,7 @@ requests = \"*\"\npillow = \"*\"\ndjango-cors-headers = \"*\"\ngunicorn = \"*\"\n-django-q = \"*\"\n+django-q = \"==1.0.2\"\n[requires]\npython_version = \"3.7\"\n" }, { "chang...
Python
MIT License
disfactory/disfactory
use django_q 1.0.2
163,161
07.03.2020 16:48:30
-28,800
fc2b05add93b5709aad47cbfb18ae2d199edbf5d
install db logger
[ { "change_type": "MODIFY", "old_path": "backend/Pipfile", "new_path": "backend/Pipfile", "diff": "@@ -19,6 +19,7 @@ pillow = \"*\"\ndjango-cors-headers = \"*\"\ngunicorn = \"*\"\ndjango-q = \"==1.0.2\"\n+django-db-logger = \"*\"\n[requires]\npython_version = \"3.7\"\n" }, { "change_type": "M...
Python
MIT License
disfactory/disfactory
install db logger
163,161
07.03.2020 16:53:57
-28,800
14639eabfbe64b6180ccf8ced1b5f439c5c8373a
setup django_db_logger
[ { "change_type": "MODIFY", "old_path": "backend/gis_project/settings.py", "new_path": "backend/gis_project/settings.py", "diff": "@@ -61,12 +61,17 @@ INSTALLED_APPS = [\n\"rest_framework\",\n\"corsheaders\",\n\"django_q\",\n+ \"django_db_logger\",\n# Local\n\"users.apps.UsersConfig\",\n\"api.apps.Ap...
Python
MIT License
disfactory/disfactory
setup django_db_logger
163,161
07.03.2020 16:54:28
-28,800
25a8b0115a66e98127a8dda7560c9971c93ba469
add more log when uploading image
[ { "change_type": "MODIFY", "old_path": "backend/api/tasks.py", "new_path": "backend/api/tasks.py", "diff": "@@ -29,11 +29,26 @@ def update_landcode(factory_id):\ndef upload_image(image_path, client_id, image_id):\n+ LOGGER.info(f'Upload {image_id}: {image_path} with {client_id}')\n+ try:\nwith open(...
Python
MIT License
disfactory/disfactory
add more log when uploading image
163,161
07.03.2020 17:43:32
-28,800
16db3d6a436e9af988fceee6309f53bfe865c6d0
modify logger name
[ { "change_type": "MODIFY", "old_path": "backend/api/tasks.py", "new_path": "backend/api/tasks.py", "diff": "@@ -6,7 +6,7 @@ import requests\nimport easymap\nfrom .models import Factory, Image\n-LOGGER = logging.getLogger(__name__)\n+LOGGER = logging.getLogger('django')\ndef _upload_image_to_imgur(im...
Python
MIT License
disfactory/disfactory
modify logger name
163,161
07.03.2020 18:09:32
-28,800
8af9bddbd9654a76cac2f1a5ed52695506cb9ec6
more log when parsing error
[ { "change_type": "MODIFY", "old_path": "backend/api/tasks.py", "new_path": "backend/api/tasks.py", "diff": "@@ -17,7 +17,12 @@ def _upload_image_to_imgur(image_buffer, client_id):\ndata=data,\nheaders=headers,\n)\n- path = resp.json()['data']['link']\n+ try:\n+ resp_data = resp.json()\n+ path = resp...
Python
MIT License
disfactory/disfactory
more log when parsing error
163,161
07.03.2020 18:30:02
-28,800
57372e1d56bf265fcf100439f234171c31fc5d0b
get credits from imgur if upload fail
[ { "change_type": "MODIFY", "old_path": "backend/api/tasks.py", "new_path": "backend/api/tasks.py", "diff": "@@ -19,6 +19,12 @@ def _upload_image_to_imgur(image_buffer, client_id):\n)\ntry:\nresp_data = resp.json()\n+ if 'errors' in resp_data:\n+ credit_resp = requests.get(\n+ 'https://api.imgur.com/...
Python
MIT License
disfactory/disfactory
get credits from imgur if upload fail
163,176
11.03.2020 19:35:07
-28,800
dcd94503f42ebc045de0a92f5555fc0c73a9910f
Change search icon to filter icon
[ { "change_type": "ADD", "old_path": null, "new_path": "frontend/public/images/filter.svg", "diff": "+<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"17\" height=\"17\" viewBox=\"0 0 17 17\">\n+ <path fill=\"#FFF\" fill-rule=\"evenodd\" d=\"M30 158.001L36.611 165.556 36.611 173.111 40.389 174.999 4...
Python
MIT License
disfactory/disfactory
Change search icon to filter icon
163,176
11.03.2020 19:41:07
-28,800
df4628b5657512a2fc63641ca583101995f4ab2f
Add dark green color for AppButton
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppButton.vue", "new_path": "frontend/src/components/AppButton.vue", "diff": "<template>\n<button\n- :class=\"{ outline, disabled, rect, blue: color === 'blue', red: color === 'red', gray: color === 'gray' }\"\n+ :class=\"{ outline, dis...
Python
MIT License
disfactory/disfactory
Add dark green color for AppButton
163,176
15.03.2020 14:08:04
-28,800
457636f28f89838a97c06a9f19092c1a85deb6ad
Update outline button style
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/TutorialModal.vue", "new_path": "frontend/src/components/TutorialModal.vue", "diff": "@@ -147,6 +147,8 @@ export default createComponent({\ncolor: $primary-color;\nmargin-bottom: 15px;\nline-height: 1.5em;\n+ user-select: none;\n+ curso...
Python
MIT License
disfactory/disfactory
Update outline button style
163,176
15.03.2020 14:08:26
-28,800
ec30e0094206241f6cc3738553a442b9cc646444
Adjust button hover color
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppButton.vue", "new_path": "frontend/src/components/AppButton.vue", "diff": "@@ -65,7 +65,7 @@ button {\n&:hover {\ncursor: pointer;\n- background-color: lighten($primary-color, 20%);\n+ background-color: lighten($primary-color, 10%);\...
Python
MIT License
disfactory/disfactory
Adjust button hover color
163,176
15.03.2020 14:52:18
-28,800
7a07ea023d181f31f1267bf40c5e398d7b388892
Set LUI layer visibility button
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/map.ts", "new_path": "frontend/src/lib/map.ts", "diff": "@@ -318,7 +318,8 @@ const getLUIMapLayer = (wmtsTileGrid: WMTSTileGrid) => {\ntype MapEventHandler = {\nonMoved?: (location: [number, number, number], canPlaceFactory: boolean) => void,\...
Python
MIT License
disfactory/disfactory
Set LUI layer visibility button
163,176
15.03.2020 15:21:57
-28,800
1028db221805b9e3fc7985bef693ffa21234b5a3
Use textarea element for factory description
[ { "change_type": "ADD", "old_path": null, "new_path": "frontend/src/components/AppTextArea.vue", "diff": "+<template>\n+ <textarea\n+ v-bind=\"$attrs\"\n+ v-model=\"inputValue\"\n+ rows=\"7\"\n+ />\n+</template>\n+\n+<script>\n+import { computed, createComponent } from '@vue/composition-api'\n+expor...
Python
MIT License
disfactory/disfactory
Use textarea element for factory description
163,176
17.03.2020 21:59:25
-28,800
b3e9d50dec5b3353b87b67538bb3027336b4d53a
Impl AppAlert component
[ { "change_type": "ADD", "old_path": null, "new_path": "frontend/public/images/alert.svg", "diff": "+<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"35\" height=\"35\" viewBox=\"0 0 35 35\">\n+ <path fill=\"#FFF\" fill-rule=\"evenodd\" d=\"M10.512.386L.596 9.32C.211 9.6 0 10.056 0 10.547v13.91c0 .4...
Python
MIT License
disfactory/disfactory
Impl AppAlert component
163,176
18.03.2020 09:02:22
-28,800
d7ab3c961dd3b8728a2eaa3e079bfe1b153f48fe
Alert when selecting non-argri location
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppAlert.vue", "new_path": "frontend/src/components/AppAlert.vue", "diff": "<template>\n<div class=\"app-alert\" v-if=\"alert\">\n+ <div class=\"close\" @click=\"dismiss\" data-label=\"alert-close\" />\n<img src=\"/images/alert.svg\" al...
Python
MIT License
disfactory/disfactory
Alert when selecting non-argri location
163,176
18.03.2020 19:11:30
-28,800
094f447faea3f649e8b74678a486a06bf7cfe560
Alert no location permission
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/map.ts", "new_path": "frontend/src/lib/map.ts", "diff": "@@ -518,12 +518,12 @@ export class OLMap {\npublic zoomToGeolocation () {\nif (!this.geolocation) {\n- return\n+ throw new Error('No location permission')\n}\nconst location = this.geolo...
Python
MIT License
disfactory/disfactory
Alert no location permission
163,176
18.03.2020 20:37:43
-28,800
fc26042641add8718f5b8b8571ab0b146a66cdb6
Update getting start modal
[ { "change_type": "MODIFY", "old_path": "frontend/src/App.vue", "new_path": "frontend/src/App.vue", "diff": "@@ -97,7 +97,6 @@ export default createComponent({\nprovideAlertState()\nprovideModalState()\n- localStorage.setItem('use-app', 'true')\nconst [modalState, modalActions] = useModalState()\ncon...
Python
MIT License
disfactory/disfactory
Update getting start modal
163,161
18.03.2020 21:34:37
-28,800
0404574d493e9327976b10a9715bb2888696943f
add fall back image hosting
[ { "change_type": "MODIFY", "old_path": "backend/.env.sample", "new_path": "backend/.env.sample", "diff": "@@ -14,3 +14,6 @@ DISFACTORY_BACKEND_LOG_LEVEL=INFO\nDISFACTORY_BACKEND_LOG_FILE=/tmp/disfactory.log\nDISFACTORY_BACKEND_DEBUG=false\n+\n+DISFACTORY_BACKEND_MEDIA_ROOT=/tmp\n+DISFACTORY_BACKEND_...
Python
MIT License
disfactory/disfactory
add fall back image hosting
163,161
18.03.2020 22:02:12
-28,800
080dc9cd4d0270a78c148f559b42e7fbfbe9406e
create media root if not exist
[ { "change_type": "MODIFY", "old_path": "backend/gis_project/settings.py", "new_path": "backend/gis_project/settings.py", "diff": "@@ -11,8 +11,10 @@ https://docs.djangoproject.com/en/2.2/ref/settings/\n\"\"\"\nimport os\n+import pathlib\nimport warnings\n+\n# Build paths inside the project like this...
Python
MIT License
disfactory/disfactory
create media root if not exist
163,176
18.03.2020 22:32:09
-28,800
36a28e8a316a6b9c25dfd47c8ac2049da29f30b9
Update sidebar links
[ { "change_type": "MODIFY", "old_path": "frontend/src/App.vue", "new_path": "frontend/src/App.vue", "diff": "@@ -114,8 +114,8 @@ export default createComponent({\nmodalActions.openTutorialModal,\nmodalActions.openSafetyModal,\nmodalActions.openContactModal,\n- 'https://about.disfactory.tw',\n- modalA...
Python
MIT License
disfactory/disfactory
Update sidebar links
163,176
18.03.2020 22:32:25
-28,800
68a416e2b3ea82ce570e6ff5e41b0577317c99bb
Fix dismiss props not supply
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppModal.vue", "new_path": "frontend/src/components/AppModal.vue", "diff": ">\n<div class=\"app-modal-backdrop\" @click=\"dismiss\" data-label=\"modal-backdrop\" />\n<div class=\"app-modal\">\n- <div class=\"close\" @click=\"dismiss\" v...
Python
MIT License
disfactory/disfactory
Fix dismiss props not supply
163,162
19.03.2020 17:03:34
-28,800
0b43b946c1e17c05630417cc936251599413bb8d
Add robots.txt on dev
[ { "change_type": "MODIFY", "old_path": ".circleci/config.yml", "new_path": ".circleci/config.yml", "diff": "@@ -67,6 +67,7 @@ jobs:\ngit config user.email \"ci-build@disfactory.tw\"\ngit config user.name \"ci-build\"\necho \"dev.disfactory.tw\" > frontend/dist/CNAME\n+ echo \"User-agent: *\\nDisallo...
Python
MIT License
disfactory/disfactory
Add robots.txt on dev
163,162
19.03.2020 17:21:02
-28,800
300a6724bd8356a241fb03f4c5897101c7d85d7e
Fix robots.txt on dev
[ { "change_type": "MODIFY", "old_path": ".circleci/config.yml", "new_path": ".circleci/config.yml", "diff": "@@ -67,7 +67,7 @@ jobs:\ngit config user.email \"ci-build@disfactory.tw\"\ngit config user.name \"ci-build\"\necho \"dev.disfactory.tw\" > frontend/dist/CNAME\n- echo \"User-agent: *\\nDisallo...
Python
MIT License
disfactory/disfactory
Fix robots.txt on dev
163,176
31.03.2020 21:22:44
-28,800
dfaa79d4323bf1c611eaf813ddc5e64a13220751
Use blob url for preview upload image
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/ImageUploadModal.vue", "new_path": "frontend/src/components/ImageUploadModal.vue", "diff": "@@ -41,6 +41,18 @@ import { createComponent, computed, reactive } from '@vue/composition-api'\nimport { uploadImages, updateFactoryImages } from...
Python
MIT License
disfactory/disfactory
Use blob url for preview upload image
163,176
31.03.2020 21:24:54
-28,800
8ea5eb5fd87c3a94a15e2f666d815ad6c74e79d1
Limit max size for minimap
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/FormPage.vue", "new_path": "frontend/src/components/FormPage.vue", "diff": "@@ -512,5 +512,12 @@ export default createComponent({\n.minimap {\ncursor: pointer;\n+\n+ @media (min-width: 767.99999px) {\n+ display: block;\n+ margin: 0 auto...
Python
MIT License
disfactory/disfactory
Limit max size for minimap
163,161
01.04.2020 09:31:46
0
4e15940cd3e927062d8327533252b9d8053a9d39
modify static settigns
[ { "change_type": "MODIFY", "old_path": "backend/.gitignore", "new_path": "backend/.gitignore", "diff": "@@ -93,3 +93,6 @@ ENV/\n.ropeproject\ndump.rdb\n+\n+images/\n+static/\n" }, { "change_type": "MODIFY", "old_path": "backend/gis_project/settings.py", "new_path": "backend/gis_proje...
Python
MIT License
disfactory/disfactory
modify static settigns
163,161
11.04.2020 17:01:29
-28,800
7705d08644a61c730691a1fbdd9b883971d1164f
add town name field
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/migrations/0013_auto_20200411_0848.py", "diff": "+# Generated by Django 2.2.10 on 2020-04-11 08:48\n+\n+from django.db import migrations, models\n+\n+\n+class Migration(migrations.Migration):\n+\n+ dependencies = [\n+ ('api', '0012_a...
Python
MIT License
disfactory/disfactory
add town name field
163,161
11.04.2020 18:24:49
-28,800
78039f078205a12892064574677e15622d8bcc3c
make town code and name mapping a module
[ { "change_type": "MODIFY", "old_path": "backend/easymap.py", "new_path": "backend/easymap.py", "diff": "import requests\nimport re\n-import xml.etree.ElementTree as ET\n+\n+import towninfo\nclass WebRequestError(RuntimeError):\n@@ -70,12 +71,7 @@ def get_land_number(x, y):\ntoken = get_token(sess)\n...
Python
MIT License
disfactory/disfactory
make town code and name mapping a module
163,161
11.04.2020 18:41:32
-28,800
2280797b4a96fc4fb986c158b1e4b358d65b8059
add towninfo test
[ { "change_type": "MODIFY", "old_path": "backend/towninfo/__init__.py", "new_path": "backend/towninfo/__init__.py", "diff": "@@ -2,7 +2,7 @@ import pathlib\nimport xml.etree.ElementTree as ET\n-HERE = pathlib.Path(__file__).home()\n+HERE = pathlib.Path(__file__).parent\ncode2name = {}\nname2code = {}...
Python
MIT License
disfactory/disfactory
add towninfo test
163,161
11.04.2020 18:43:13
-28,800
eac1fff7eb192c67e7aa658b28e59e7a041cb36a
add section name and code
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/migrations/0014_auto_20200411_1043.py", "diff": "+# Generated by Django 2.2.10 on 2020-04-11 10:43\n+\n+from django.db import migrations, models\n+\n+\n+class Migration(migrations.Migration):\n+\n+ dependencies = [\n+ ('api', '0013_a...
Python
MIT License
disfactory/disfactory
add section name and code
163,161
11.04.2020 20:16:31
-28,800
b1f596d0a60b29995b3b8640b2be4bcafbb6b4ba
modify update_landcode task to collect full columns
[ { "change_type": "MODIFY", "old_path": "backend/api/tasks.py", "new_path": "backend/api/tasks.py", "diff": "@@ -42,9 +42,20 @@ def _upload_image_to_imgur(image_buffer, client_id):\ndef update_landcode(factory_id):\nfactory = Factory.objects.get(pk=factory_id)\n- land_number = easymap.get_land_number...
Python
MIT License
disfactory/disfactory
modify update_landcode task to collect full columns
163,161
12.04.2020 14:08:45
-28,800
1e609610f60ce2002d6b7cdc2ca44c59d466376a
let admin page show sect and town code and name
[ { "change_type": "MODIFY", "old_path": "backend/api/admin.py", "new_path": "backend/api/admin.py", "diff": "@@ -51,6 +51,10 @@ class FactoryAdmin(admin.ModelAdmin):\n'lat',\n'lng',\n'landcode',\n+ 'sectcode',\n+ 'sectname',\n+ 'towncode',\n+ 'townname',\n'id',\n)\nlist_filter = (\n" } ]
Python
MIT License
disfactory/disfactory
let admin page show sect and town code and name
163,161
12.04.2020 14:32:08
-28,800
6ab5b2e14f51481c16d1016b032f25973509103e
ignore factories that are not possible to parse
[ { "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": "@@ -20,8 +20,14 @@ def forward_func(apps, schema_editor):\nfactories = Factory.objects.filter(before_release=True).all()\n...
Python
MIT License
disfactory/disfactory
ignore factories that are not possible to parse
163,176
01.04.2020 21:07:40
-28,800
ec1aca44d2fe6f0c9aecd1a07268187978115a7d
Preserve map state in url hash
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/Map.vue", "new_path": "frontend/src/components/Map.vue", "diff": "@@ -85,6 +85,7 @@ import { useModalState } from '../lib/hooks'\nimport { useFactoryPopup, getPopupData } from '../lib/factoryPopup'\nimport { useAppState } from '../lib/a...
Python
MIT License
disfactory/disfactory
Preserve map state in url hash
163,176
04.04.2020 18:24:01
-28,800
642afc45536cf6779d71ae1035553b959d1a46e3
Rewrite permalink in ts
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/map.ts", "new_path": "frontend/src/lib/map.ts", "diff": "@@ -358,8 +358,7 @@ export class OLMap {\nconst zoom = view.getZoom()!\n// resolution in meter\n- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n- const resolution...
Python
MIT License
disfactory/disfactory
Rewrite permalink in ts
163,176
14.04.2020 20:47:07
-28,800
6743576f2ab22f34b91ea7ad6b5df331a14ded8d
Swap latitude & longitude in permalink
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/permalink.ts", "new_path": "frontend/src/lib/permalink.ts", "diff": "@@ -16,8 +16,8 @@ export const permalink = new class implements KeyFn<PermaLinkState> {\nconst m = /^#map=([\\d.]+)\\/([\\d.]+)\\/([\\d.]+)$/.exec(loc.hash)\nif (m !== null) ...
Python
MIT License
disfactory/disfactory
Swap latitude & longitude in permalink
163,176
21.04.2020 23:46:27
-28,800
3079bdc4b71139890c2ae7298362d7363c054176
Add search location button
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppButton.vue", "new_path": "frontend/src/components/AppButton.vue", "diff": "<template>\n<button\n- :class=\"{ outline, disabled, rect, blue: color === 'blue', red: color === 'red', gray: color === 'gray', 'dark-green': color === 'dark...
Python
MIT License
disfactory/disfactory
Add search location button
163,176
22.04.2020 00:30:59
-28,800
bca0c0963daaab942decb393030f5415c4ff8d93
Navigate to input location
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/AppButton.vue", "new_path": "frontend/src/components/AppButton.vue", "diff": "<template>\n<button\n- :class=\"{ outline, disabled, rect, small, ...{ [color]: true }}\"\n+ :class=\"{ outline, disabled, rect, small, auto, ...{ [color]: tr...
Python
MIT License
disfactory/disfactory
Navigate to input location
163,176
22.04.2020 20:29:11
-28,800
11e3396e042d67dae31d5b35d6e1c2b778ae0aad
Fix setCoordinate optional param
[ { "change_type": "MODIFY", "old_path": "frontend/src/lib/map.ts", "new_path": "frontend/src/lib/map.ts", "diff": "@@ -407,7 +407,7 @@ export class OLMap {\n})\n}\n- public setCoordinate (longitude: number, latitude: number, zoom: number | undefined = undefined) {\n+ public setCoordinate (longitude: ...
Python
MIT License
disfactory/disfactory
Fix setCoordinate optional param
163,161
25.04.2020 16:04:18
-28,800
c345cf57c8857a22142332f47a3b095363a692f7
add original lat and lng field for Image
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/migrations/0016_auto_20200425_0804.py", "diff": "+# Generated by Django 2.2.10 on 2020-04-25 08:04\n+\n+from django.db import migrations, models\n+\n+\n+class Migration(migrations.Migration):\n+\n+ dependencies = [\n+ ('api', '0015_i...
Python
MIT License
disfactory/disfactory
add original lat and lng field for Image
163,161
25.04.2020 16:14:02
-28,800
76e5d765613f7abe6c63c82a9e6a01d072ba8dd0
add test for the case of json provided
[ { "change_type": "MODIFY", "old_path": "backend/api/views/tests/test_image_c.py", "new_path": "backend/api/views/tests/test_image_c.py", "diff": "from datetime import datetime, timezone\n+import json\nfrom unittest.mock import patch\nfrom pathlib import Path\n@@ -72,3 +73,37 @@ class PostImageViewTe...
Python
MIT License
disfactory/disfactory
add test for the case of json provided
163,161
25.04.2020 16:39:17
-28,800
51e8aff27452f017ef786cc92bc2bcc27c15a401
impl image upload with url
[ { "change_type": "MODIFY", "old_path": "backend/api/views/image_c.py", "new_path": "backend/api/views/image_c.py", "diff": "+import json\nimport logging\n+from datetime import datetime\nfrom tempfile import mkstemp\nimport uuid\n@@ -6,6 +8,7 @@ from django.conf import settings\nfrom django.http impo...
Python
MIT License
disfactory/disfactory
impl image upload with url
163,161
25.04.2020 16:57:23
-28,800
cfa9c9d562d65bfbefa690eae498e1941f4b79bb
add unittest of image uploading with url for certain factory
[ { "change_type": "MODIFY", "old_path": "backend/api/views/tests/test_factory_image_c.py", "new_path": "backend/api/views/tests/test_factory_image_c.py", "diff": "+import json\nfrom uuid import uuid4\nfrom datetime import datetime, timezone\nfrom unittest.mock import patch\n@@ -125,3 +126,56 @@ class...
Python
MIT License
disfactory/disfactory
add unittest of image uploading with url for certain factory
163,161
25.04.2020 17:11:40
-28,800
b03e1e78a362bf8ad306d0d2ea98ce2aa59ccd96
impl image uploading with url for certain factory
[ { "change_type": "MODIFY", "old_path": "backend/api/views/factory_image_c.py", "new_path": "backend/api/views/factory_image_c.py", "diff": "+import json\n+from datetime import datetime\nimport logging\nimport uuid\n@@ -27,6 +29,23 @@ def post_factory_image(request, factory_id):\nf\"Factory ID {facto...
Python
MIT License
disfactory/disfactory
impl image uploading with url for certain factory
163,161
28.04.2020 19:23:06
-28,800
0e065cb998bfd12dbae415781d3c0721b6e8dda2
remove extra inlines
[ { "change_type": "MODIFY", "old_path": "backend/api/admin.py", "new_path": "backend/api/admin.py", "diff": "@@ -63,10 +63,12 @@ class ExportCsvMixin:\nclass ReportRecordInline(admin.TabularInline):\nmodel = ReportRecord\n+ extra = 0\nclass ImageInline(admin.TabularInline):\nmodel = Image\n+ extra = ...
Python
MIT License
disfactory/disfactory
remove extra inlines
163,161
28.04.2020 21:49:07
-28,800
42d1622b974a6d8d35faad7c1adabea58b247fed
better image inline
[ { "change_type": "MODIFY", "old_path": "backend/api/admin.py", "new_path": "backend/api/admin.py", "diff": "@@ -4,6 +4,7 @@ from datetime import datetime, timedelta\nfrom django.http import HttpResponse\nfrom django.contrib import admin\nfrom django.contrib.admin import SimpleListFilter\n+from djang...
Python
MIT License
disfactory/disfactory
better image inline
163,161
28.04.2020 21:56:14
-28,800
493e2ea65075dd45d9f3822cc5a48ec4569014ef
smaller thumbnail
[ { "change_type": "MODIFY", "old_path": "backend/api/admin.py", "new_path": "backend/api/admin.py", "diff": "@@ -116,7 +116,7 @@ class ImageInlineForFactory(admin.TabularInline):\nreturn obj.report_record.nickname\ndef image_show(self, obj):\n- return mark_safe(f'<img src=\"{obj.image_path}\" />')\n+...
Python
MIT License
disfactory/disfactory
smaller thumbnail
163,176
29.04.2020 20:10:23
-28,800
535b54ca0081c32c261183419de799f4e3ea1dfc
Set zoom to 17 if no zoom given or less than 17
[ { "change_type": "MODIFY", "old_path": "frontend/src/components/Map.vue", "new_path": "frontend/src/components/Map.vue", "diff": "@@ -246,7 +246,11 @@ export default createComponent({\n// TODO: show invalid input error\ndismissLocationInput()\n} else {\n- mapControllerRef.value.mapInstance.setCoordi...
Python
MIT License
disfactory/disfactory
Set zoom to 17 if no zoom given or less than 17
163,161
30.04.2020 18:30:51
-28,800
cbb7d959b6aba2af45b68573fb31c24cd674400f
let name clickable and add factory type
[ { "change_type": "MODIFY", "old_path": "backend/api/admin.py", "new_path": "backend/api/admin.py", "diff": "@@ -127,7 +127,7 @@ class ImageInlineForFactory(admin.TabularInline):\n@admin.register(Factory)\nclass FactoryAdmin(admin.ModelAdmin, ExportCsvMixin):\nlist_display = (\n- 'name',\n+ 'get_name...
Python
MIT License
disfactory/disfactory
let name clickable and add factory type
163,161
30.04.2020 18:52:45
-28,800
a695b7bd0c779627227b1c17fc7f6ac85597f308
make all models soft-deletable
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/migrations/0018_make_all_soft_deletable.py", "diff": "+# Generated by Django 2.2.10 on 2020-04-30 10:52\n+\n+from django.db import migrations, models\n+\n+\n+class Migration(migrations.Migration):\n+\n+ dependencies = [\n+ ('api', '0...
Python
MIT License
disfactory/disfactory
make all models soft-deletable
163,161
30.04.2020 19:09:58
-28,800
d46f4d3bb1f17d9ae4a625f0b055c637eec6e931
refactor API models
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/models/image.py", "diff": "+import uuid\n+\n+from django.contrib.gis.db import models\n+\n+from .mixins import SoftDeleteMixin\n+from .factory import Factory\n+from .report_record import ReportRecord\n+\n+\n+class Image(SoftDeleteMix...
Python
MIT License
disfactory/disfactory
refactor API models
163,161
30.04.2020 19:46:16
-28,800
c1fc87f8d2e1216b0dc1c006f15360a59f5317d5
add recycled proxy models for admin
[ { "change_type": "MODIFY", "old_path": "backend/api/models/factory.py", "new_path": "backend/api/models/factory.py", "diff": "@@ -82,3 +82,11 @@ class Factory(SoftDeleteMixin):\nself.point = Point(self.lng, self.lat, srid=4326)\nself.point.transform(settings.POSTGIS_SRID)\nsuper(Factory, self).save(...
Python
MIT License
disfactory/disfactory
add recycled proxy models for admin
163,161
09.05.2020 15:14:39
-28,800
a33c10c99ad3fedcb3fa5b54df657e68c28f19fc
add delete mixin test case
[ { "change_type": "ADD", "old_path": "backend/api/models/tests/__init__.py", "new_path": "backend/api/models/tests/__init__.py", "diff": "" }, { "change_type": "ADD", "old_path": null, "new_path": "backend/api/models/tests/test_mixins.py", "diff": "+from datetime import datetime, ...
Python
MIT License
disfactory/disfactory
add delete mixin test case
163,161
09.05.2020 22:03:04
-28,800
759d9bd61409ca9d01b3dfd9eb0cba4ec80d930e
move old image upload view functions to miscellaneous folder
[ { "change_type": "MODIFY", "old_path": "backend/api/urls.py", "new_path": "backend/api/urls.py", "diff": "@@ -28,6 +28,10 @@ urlpatterns = [\npath(\"factories\", get_nearby_or_create_factories),\npath(\"factories/<factory_id>\", update_factory_attribute),\npath(\"factories/<factory_id>/report_record...
Python
MIT License
disfactory/disfactory
move old image upload view functions to miscellaneous folder
163,161
09.05.2020 22:42:01
-28,800
55c462f6e1ce2bd850dd6a5df81ee6299d3d862b
add image url post test case
[ { "change_type": "ADD", "old_path": null, "new_path": "backend/api/views/tests/test_image_c.py", "diff": "+from datetime import datetime, timezone\n+\n+from django.test import TestCase, Client\n+from freezegun import freeze_time\n+\n+from api.models import Image\n+\n+\n+class PostImageUrlViewTestCas...
Python
MIT License
disfactory/disfactory
add image url post test case