Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
68a8ade
Update quest_templates.json (#951)
moltova Aug 15, 2020
46d0ceb
AutoConfig UX Improvements (#953)
Expl0dingBanana Aug 16, 2020
f064ed6
fix init mode wording
sn0opy Aug 18, 2020
0d8d45a
wording for auto-config warnings
sn0opy Aug 18, 2020
9ed31e3
update frontend toggles library
sn0opy Aug 18, 2020
2761eaf
visual device control overhaul
sn0opy Aug 18, 2020
7736fcf
fix tests
sn0opy Aug 18, 2020
f4319e0
fix missing test
sn0opy Aug 18, 2020
a1732ca
remove unused assets
sn0opy Aug 18, 2020
da50e5b
Fix CRLF in Auto-Config generation
Expl0dingBanana Aug 19, 2020
d957bb0
fix device control dark theme
sn0opy Aug 20, 2020
dc9ce8d
remove outdated offsets
sn0opy Aug 24, 2020
36221f6
add dummy addresses for 0.185.0
sn0opy Aug 25, 2020
eb1b268
Wizard Targeted PoGo Downloads (#964)
Expl0dingBanana Aug 26, 2020
8ddd0b3
fix tooltips for spawnpoint statistic
sn0opy Aug 26, 2020
35fd001
fix link color in alerts (#965)
JabLuszko Aug 26, 2020
bdd3bb5
fix typo in css
sn0opy Aug 26, 2020
212f86c
Pausing device enables ConfigMode for the worker (#962)
Expl0dingBanana Aug 26, 2020
af2d875
Autoconfig Issues class (#967)
Expl0dingBanana Aug 26, 2020
b6b45b6
ignore trash protos
Aug 26, 2020
2d661ed
Text fixes within madmin (#971)
Boby360 Aug 28, 2020
02ee67e
add evolution support (#972)
sn0opy Aug 28, 2020
530ac82
Fix Config Editor (#970)
Expl0dingBanana Aug 28, 2020
c865788
Add evolution to webhook (#973)
JabLuszko Aug 29, 2020
4104746
Implemented geofence editing on map (#959)
MrJul Aug 29, 2020
c099d1d
Support for 0.185.1 32/64 bit
Aug 31, 2020
d85881d
force lowercase on PD backend email (#979)
Expl0dingBanana Sep 1, 2020
de5cee8
add option to ignore backlog mitm data (#978)
sn0opy Sep 1, 2020
e4d10ea
rename raid evolution property
sn0opy Sep 1, 2020
041c0ca
fix tests
sn0opy Sep 1, 2020
c7aae06
Mega quest support (#985)
fosJoddie Sep 2, 2020
941f8d3
add version codes
sn0opy Sep 3, 2020
8e5ac12
Some UI fixes for MADmin (mainly for mobile) (#986)
georgeherby Sep 4, 2020
bdd9454
fix workers not being available for location injection (#975)
JabLuszko Sep 4, 2020
fb33e83
Show proto type in 'got the data requested' log line (#968)
wraythex Sep 4, 2020
31adb56
add prioq popup for locations and lines. fixes #976 (#977)
MrJul Sep 4, 2020
ed0f453
add mitm_ignore_pre_boot to default config.ini (#983)
JabLuszko Sep 4, 2020
4e053cb
fix double clicking on map messing up fence creation/editing. (#987)
MrJul Sep 4, 2020
23cdec5
Remove need of PogoAssets for shiny mons stats (#982)
JabLuszko Sep 4, 2020
00807f5
Optimized mon statistics page load (#984)
MrJul Sep 4, 2020
d53fddd
Revert "Show proto type in 'got the data requested' log line (#968)"
sn0opy Sep 4, 2020
4344a89
Support for 0.185.3 32/64 bit
Sep 5, 2020
fb341e7
Add Remote pass to not-allowed-list
Sep 8, 2020
05e7a2a
Fix delete button not doing anything on spawnpoints page (#994)
JabLuszko Sep 9, 2020
98500b1
Bring back confirm dialog for Reset data (#993)
JabLuszko Sep 9, 2020
806a196
log MADMin ws clicks (#992)
JabLuszko Sep 9, 2020
516f172
Removed map duplicate computed properties (#988)
MrJul Sep 9, 2020
749ba57
update september DE quest_templates.json (#980)
moltova Sep 10, 2020
c748823
Refactor data processing for easier implementation of raw data proces…
sn0opy Sep 10, 2020
9493c06
potential fix for batch walker update in MADmin
sn0opy Sep 11, 2020
870c05c
Support Mega Evolve quests
fosJoddie Sep 11, 2020
4838e9c
oeps
fosJoddie Sep 11, 2020
6e71f4f
Quickfix, move mega empty def to correct quest (#999)
JabLuszko Sep 11, 2020
37cc8c8
Update types.json (#998)
JabLuszko Sep 11, 2020
f62cde5
Hide the Expand All/Collapse button all on Status page when on a larg…
georgeherby Sep 12, 2020
06d5e59
- Stop drop down menus (<select>) overflowing
georgeherby Sep 12, 2020
3bb3706
Whoop!
georgeherby Sep 12, 2020
712f168
Make the dropdowns sticky, so if you click the
georgeherby Sep 12, 2020
a12d3dd
Add % known to spawnpoint stats page
georgeherby Sep 12, 2020
1261ef3
Remove Ledyba 165 from ditto list
cyphercris Sep 11, 2020
ebb13f9
Add option for more entries in status page (#1002)
JabLuszko Sep 14, 2020
37627cb
Add more variations of Remote Raid Pass/Premium Battle Pass (#1001)
JabLuszko Sep 14, 2020
5a846b5
Implement PTC as PogoAuth (#995)
Expl0dingBanana Sep 17, 2020
1757168
add 0.187.1 64bit support
ColdShadow80 Sep 22, 2020
9310ef9
PTC / Data Manager fixes (#1012)
Expl0dingBanana Sep 22, 2020
c45b823
Support 0.187.1 32 bit
Sep 22, 2020
e8c60d5
Fix PD Case Sensitivity (#1009)
Expl0dingBanana Sep 22, 2020
8a5f550
Wizard download fixes (#1014)
Expl0dingBanana Sep 23, 2020
1429840
Re-Implement PD get_addresses endpoint
Expl0dingBanana Sep 24, 2020
ed4d069
Exclude W503 from flake
fosJoddie Sep 23, 2020
84184ec
Enforcement within MAD for unique MAC addresses
Expl0dingBanana Sep 20, 2020
de8a074
Display devices associated with the duplicate MAC addresses
Expl0dingBanana Sep 25, 2020
ef75962
Merge pull request #1015 from Map-A-Droid/mac_enforcement
krzee Sep 25, 2020
be4fe38
add codeql integration
sn0opy Oct 1, 2020
7d64eaf
Delete old versions (#1017)
JabLuszko Oct 1, 2020
b335970
Fixed walking speed display (#1008)
MrJul Oct 1, 2020
a1cba74
Allow easier PD debugging (#1019)
Expl0dingBanana Oct 2, 2020
9dab627
Actually fix the PD debugging...
Expl0dingBanana Oct 2, 2020
09153d3
Wizard support for 0.187.2
Expl0dingBanana Oct 2, 2020
db81954
Wizard support for 0.187.2
Expl0dingBanana Oct 2, 2020
949e4b5
FIX: autojob unexpected keyword argument
Oct 3, 2020
23787fd
Remove Wikimedia tileserver from maptiles (#1024)
reedy Oct 11, 2020
17c9e34
Fix Statistic for Worker (#1021)
JabLuszko Oct 12, 2020
d7754d9
rework webhook worker to fetch only data for filtered types (#1027)
sn0opy Oct 13, 2020
af940a6
add 0.189.0 version codes for the wizard
sn0opy Oct 17, 2020
4539dcb
Update MitmDataProcessorManager.py (#1037)
JabLuszko Oct 18, 2020
f0cb56e
Wizard GPlay Version Code Validation (#1032)
Expl0dingBanana Oct 18, 2020
272639f
Support for new quest type
fosJoddie Oct 21, 2020
0942649
German translations
fosJoddie Oct 21, 2020
65183e0
PokeStop
fosJoddie Oct 21, 2020
a380a1b
Add Stickers to not deletable items (#1042)
JabLuszko Oct 22, 2020
93d0f1e
Fix lat_long_to_cell_id (#1036)
fosJoddie Oct 22, 2020
caf8b78
Message error when can't save file to temp_path (#1038)
JabLuszko Oct 22, 2020
3b8ef35
Calculate despawn time from data timestamp instead of now() (#1033)
crhbetz Oct 22, 2020
2af2202
Warning message when trying to run init and level (#1035)
JabLuszko Oct 22, 2020
2ed7d2b
WorkerBase fixes (#1031)
crhbetz Oct 22, 2020
d56ebe2
update a few settings + remove old/unused settings (#1023)
sn0opy Oct 22, 2020
fe2af7e
remove bad arguments (#1044)
muckelba Oct 22, 2020
1ed96f9
fix shorthand version for disable_madmin
sn0opy Oct 23, 2020
18802e5
QuickFix for scanned location (#1047)
JabLuszko Oct 23, 2020
42471aa
Fix Travis - madmin enabled by default (#1048)
JabLuszko Oct 23, 2020
041cc36
generate proper url for loading.gif in all places (#1050)
sn0opy Oct 26, 2020
3107f4c
Quick fix for missing items in items
JabLuszko Oct 31, 2020
4907771
add 0.191.0 version codes
sn0opy Nov 3, 2020
8545e26
add debug logging for data processing times (#1055)
sn0opy Nov 4, 2020
74d7954
0.191.1 version codes (#1056)
JabLuszko Nov 4, 2020
8749819
move debug logs for processing timings up a level
sn0opy Nov 5, 2020
1051ecf
0.191.2 version codes
Nov 5, 2020
e8143cf
Wizard validation (#1045)
Expl0dingBanana Nov 7, 2020
8252059
Timezones fix (#1039)
JabLuszko Nov 7, 2020
a8fc38e
Adjust MITMBase to only open and close Questlog (#1051)
Grennith Nov 11, 2020
d56e0e7
syntax fixes (#1059)
JabLuszko Nov 17, 2020
7f1d0c8
add missing item name + localization (#1053)
JabLuszko Nov 17, 2020
07028df
fairer route splitting into subroutes (#1046)
MrJul Nov 17, 2020
9eeebc0
add heatmap for non-IV encounter to mon stats (#1026)
JabLuszko Nov 17, 2020
6a9af56
Support for 0.193.0 32/64 bit
Nov 22, 2020
87bc7b1
Support for 0.193.1 32/64 bit
Nov 27, 2020
02ca5d4
Count up and restart on repeated spinnable check failures (#1034)
crhbetz Nov 29, 2020
ed8608f
Fix Mega evolution flag for new PogoDroid (#1060)
JabLuszko Nov 29, 2020
43f044c
Extend trs_quest.quest_reward length (#1062)
JabLuszko Nov 29, 2020
b2d11df
Support for 0.193.2 32/64 bit
Dec 2, 2020
0797e66
Support for 0.193.3 32/64 bit
Dec 5, 2020
d017af4
Development Workflow Improvements (#1065)
Expl0dingBanana Dec 9, 2020
a72eddb
Revert "Development Workflow Improvements (#1065)"
Expl0dingBanana Dec 10, 2020
7571bb3
remove unused and conflicting dependency
sn0opy Dec 10, 2020
d280c77
Push unquested stops to PD
Dec 15, 2020
4ce2a72
safer sql query
Dec 15, 2020
df09e5d
Tidy up wait for data (#1064)
Grennith Dec 16, 2020
293df9c
Move "{} not in GMO" logging to debug level
Grennith Dec 17, 2020
ba78da0
Workflow improvements (#1066)
Expl0dingBanana Dec 17, 2020
04ec77f
Logging / Flake8
Grennith Dec 17, 2020
3aa9bd9
Wizard support 0.195.0 32/64 bit
Dec 17, 2020
05b0066
Update dev build to better support multi-os (#1069)
Expl0dingBanana Dec 19, 2020
756ef63
plugins: handle exceptions in walk_package, ignore hidden directories…
crhbetz Dec 20, 2020
117010b
0.195.1 32/64
Dec 20, 2020
d82c42d
Update WorkerQuests.py
Grennith Dec 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .flake8

This file was deleted.

65 changes: 65 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: "CodeQL"

on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '0 4 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['python', 'javascript']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ configs/coords/*
status.json
update_log.json
commands.json
.tox/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
8 changes: 8 additions & 0 deletions .gitlint
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[general]
ignore=title-trailing-punctuation, title-must-not-contain-word

[title-max-length]
line-length=120

[body-max-line-length]
line-length=140
5 changes: 5 additions & 0 deletions .gitmessage
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# (ISSUE IF APPLICABLE) SHORT_DESCRIPTION

# LONG_DESCRIPTION
# * Thing 1
# * Thing 2
2 changes: 2 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[settings]
known_third_party = PIL,aioconsole,apkutils,bitstring,configargparse,cv2,dataclasses,flask,flask_caching,gevent,google,gpapi,gpxdata,imutils,loguru,mysql,numpy,pkg_resources,psutil,pytesseract,pytest,requests,s2sphere,urllib3,websockets,werkzeug
34 changes: 34 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
repos:
- repo: https://github.com/Seeefo/manage-commit-msg.git
rev: 1.0.3
hooks:
- id: restore-commit-msg
- repo: https://github.com/jorisroovers/gitlint
rev: v0.13.1
hooks:
- id: gitlint
- repo: https://github.com/Seeefo/manage-commit-msg.git
rev: 1.0.3
hooks:
- id: save-commit-msg
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
language_version: python3
additional_dependencies: [flake8-bugbear, flake8-logging-format, flake8-variables-names, pep8-naming, flake8-eradicate]
- repo: https://github.com/asottile/seed-isort-config
rev: v2.1.0
hooks:
- id: seed-isort-config
language_version: python3
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ install:
- pip3 install flake8 flake8-variables-names flake8-logging-format pep8-naming flake8-eradicate
script:
- python3 -m flake8
- python3 start.py -ut -wm -cm -cf configs/config.ini.travis -mf configs/mappings.travis.json
- python3 start.py -ut -cm -cf configs/config.ini.travis -mf configs/mappings.travis.json
- mysql -u root -e "DROP DATABASE mad;"
- mysql -u root -e "CREATE DATABASE mad;"
- python3 start.py -ut -wm -cf configs/config.ini.travis -mf configs/mappings.travis.json
- python3 start.py -ut -cf configs/config.ini.travis -mf configs/mappings.travis.json
149 changes: 149 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
CMD ?= bash
CONTAINER_NAME ?= mapadroid-dev
include docker/.dev.env
export

define PIP_MISSING
Pip is missing or not available in PATH. If pip is not installed
instructions can be found at https://pip.pypa.io/en/stable/installing/
endef

define PRE_COMMIT_MISSING
Install pre-commit @ https://pre-commit.com/#install then run
source ~/.profile
endef

define DOCKER_MISSING
Docker installation is missing or not available. This could be caused by
not having docker installed or the user does not have access to docker.
Installation instructions can be found at
https://docs.docker.com/get-docker/
endef

define DOCKER_NOT_RUNNING
Docker is not running or the user does not have access to the Docker
Engine. Please verify that its running and you have access. On *nix
systems you can run the following commands to grant access:
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
endef

define DOCKER_COMPOSE_MISSING
docker-compose -f ${COMPOSE_FILE_DEV} is not installed or not available in PATH. Installation
instructions can be found at https://docs.docker.com/compose/install/
If docker-compose -f ${COMPOSE_FILE_DEV} is installed PATH needs to be corrected to include
the binary
endef

define DOCKER_COMPOSE_OLD
docker-compose -f ${COMPOSE_FILE_DEV} is too old. Update docker-compose -f ${COMPOSE_FILE_DEV} from the instructions at
https://docs.docker.com/compose/install/
endef

# Windows defines OS but *nix does not
ifdef OS
SHELL := powershell.exe
pip := $(shell Get-Command pip | Select-Object -ExpandProperty Source)
precommit := $(shell Get-Command pre-commit | Select-Object -ExpandProperty Source)
docker := $(shell Get-Command docker | Select-Object -ExpandProperty Source)
docker_compose := $(shell Get-Command docker-compose -f ${COMPOSE_FILE_DEV} | Select-Object -ExpandProperty Source)
UID ?= 1000
GID ?= 1000
else
ifneq ($(shell which pip),)
pip := $(shell which pip)
else ifneq ($(shell which pip3),)
pip := $(shell which pip3)
else
$(error $(PIP_MISSING))
endif
precommit := $(shell which pre-commit)
docker := $(shell which docker)
docker_compose := $(shell which docker-compose -f ${COMPOSE_FILE_DEV})
UID ?= $(shell id -u)
GID ?= $(shell id -g)
endif


ifeq (, $(pip))
$(error $(PIP_MISSING))
endif
ifneq ($(VIRTUAL_ENV), )
pip_precommit_installation := $(pip) install pre-commit
else
pip_precommit_installation := $(pip) install --user pre-commit
endif
ifeq (, $(precommit))
$(error $(PRE_COMMIT_MISSING))
endif
ifeq (, $(docker))
$(error $(DOCKER_MISSING))
endif
ifeq (, $(shell docker info))
$(error $(DOCKER_NOT_RUNNING))
endif
ifeq (, $(docker_compose))
$(error $(DOCKER_COMPOSE_MISSING))
endif
compose_ver ?= $(shell docker-compose -f ${COMPOSE_FILE_DEV} --version | cut -d' ' -f3 | cut -d '.' -f2)
ifeq (, compose_ver < 27)
$(error $(DOCKER_COMPOSE_OLD))
endif

clean: clean-tox down

clean-tox:
rm -rf .tox

build:
docker build --file docker/Dockerfile --tag ${LOCAL_MAD_IMAGE} .
docker-compose -f ${COMPOSE_FILE_DEV} build --no-cache

rebuild:
docker build --file docker/Dockerfile --tag ${LOCAL_MAD_IMAGE} .
docker-compose -f ${COMPOSE_FILE_DEV} build

setup-precommit:
$(pip_precommit_installation)
pre-commit install
pre-commit install --hook-type commit-msg

setup: setup-precommit
git config commit.template .gitmessage

up:
docker-compose -f ${COMPOSE_FILE_DEV} up --detach

shell: up
docker-compose -f ${COMPOSE_FILE_DEV} exec $(CONTAINER_NAME) $(CMD)

root-shell: up
docker-compose -f ${COMPOSE_FILE_DEV} exec -u root $(CONTAINER_NAME) $(CMD)

down:
docker-compose -f ${COMPOSE_FILE_DEV} down

tests: up
docker-compose -f ${COMPOSE_FILE_DEV} exec mapadroid-dev tox

unittests: up
docker-compose -f ${COMPOSE_FILE_DEV} exec mapadroid-dev tox -e py37

# Run bash within a defined tox environment
# Specify a valid tox environment as such:
# make shell-py37
# To force a recreation of the environment, specify the RECREATE environment variable with any value
# make shell-py37 RECREATE=1
shell-%: up
ifdef RECREATE
docker-compose -f ${COMPOSE_FILE_DEV} exec mapadroid-dev tox -e $* --recreate -- bash
else
docker-compose -f ${COMPOSE_FILE_DEV} exec mapadroid-dev tox -e $* -- bash
endif

versions:
$(pip) --version
$(precommit) --version
$(docker) --version
$(docker_compose) --version
Loading