Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Bugfixes (#226)
Browse files Browse the repository at this point in the history
* case-insensitive ignoring of desktop.ini

* base dashboard framework

* Pull updates into dashboard working branch (#213)

* dependency update

* Include sources

* Fix project render when no or bad carto_id obj

* Sizes ...

* Cleanup + debugging

* later post update

* Logging

* Very bad goof

* Update DB settings

* Update dependencies

* Tentative #212

* Tentative #212

* Temporary workaround for #212

* Temporary workaround for #212

* Debug #212

* Debug #212

* Debug #212

* Fix center calculation #212

* Fix #212

* Fix #211

* Start public #209

* Start public #209

* Render public #209

* Secure multibound data for private projects

* Wrap cleaned corners in an array for compat

* Tentative logged-in render for #209

* Fix broken tag

* Tentative logged-in render for #209

* Tentative logged-in render for #209

* Fix #209

* Stage charts for dashboard

* dashboard placeholders

* Minor edits

* Recompile after updates

* Update bower

* Chart creator

* Recompile

* Chart creator

* Fix dist

* Chart creator

* Chart creator

* Chart creator

* some sketching for data charting api

* Draft chart API response for infection binning

* Fix error

* Fix iteration

* Sample API ping

* Ignore server files

* Fix passed parsed data

* Fix passed parsed data

* Multiply percent by 100

* colorize bars

* colorize bars

* Actually have some options

* Wrap in a section

* debug options

* debug options

* debug options

* debug options

* Fix tense

* fix binning

* Show a label

* Use the right adjective

* Debugging draft of location binning

* API debugging

* API debugging

* Debugging draft of location binning

* Debugging draft of location binning

* Debugging draft of location binning

* Debugging draft of location binning

* Reconstruct data

* Don't crap out on one bad blob of data

* async timing

* start at 0

* Bad Builders

* Un-disable location

* More api info

* More api info

* More api info

* More raw info on country feedback

* Delay for query limit

* Delay for query limit

* response change

* response change

* initialize empty points

* initialize empty points

* initialize empty points

* wrong lookup type

* arrayify

* fix goofed wait

* query limit test

* query limit test

* query limit test

* query limit test

* query limit test

* query limit test

* query limit test

* query limit test

* query limit test

* query limit test

* query limit test

* query limit test

* query limit test

* query limit test

* Tentative #216

* Update dependencies

* More updates

* bump

* Change the behaviour of search results

* BiSciCol link moved: Fix #222

* Record migrator

* Try country sample binning

* Start synonymization for countries

* Samples by country

* More synonymies

* Fix synonymies

* Fix synonymies

* Handle zero results

* Update chart.js

* Add dev public key

* Minor coffee update

* Allow stacking context

* Synonymies

* Dedups

* more dedups

* Enable debug context by default

* Enable debug context by default

* Enable debug context by default

* Enable debug context by default

* Store parsed data for later handling? ...

* Fix issue with fakely not-empty last statement giving unauthorized query type error

* Better FIMS bad response

* Remove cancel upload once upload finished

* Tag saves with modified time

* bump version

* Change ms to s

* play with column adder

* data types
  • Loading branch information
tigerhawkvok authored Mar 30, 2017
1 parent f49a715 commit 7d6aa8e
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "BD Web Tracker",
"version": "0.12.1",
"version": "0.12.2",
"homepage": "https://amphibiandisease.org/",
"authors": [
"Philip Kahn <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion coffee/admin-editor.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2294,7 +2294,7 @@ saveEditorData = (force = false, callback) ->
catch e
console.error "Couldn't check path count -- #{e.message}. Faking it."
pointCount = maxPathCount + 1
postData.modified = Date.now()
postData.modified = Date.now() / 1000
console.log "Sending to server", postData
args = "perform=save&data=#{jsonTo64 postData}"
debugInfoDelay = delay 10000, ->
Expand Down
2 changes: 1 addition & 1 deletion coffee/admin.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ finalizeData = (skipFields = false, callback) ->
bounding_polygon_geojson: geo?.geoJsonBoundingBox
postData.carto_id = JSON.stringify cartoData
postData.project_id = _adp.projectId
postData.modified = Date.now()
postData.modified = Date.now() / 1000
try
postData.project_obj_id = _adp.fims.expedition.ark
catch
Expand Down
4 changes: 3 additions & 1 deletion core/db/DBHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ public function columnExists($columnName) {
return (mysqli_num_rows($result)) ? TRUE : FALSE;
}

public function addColumn($columnName, $columnType = null) {
public function addColumn($columnName, $columnType = "TEXT") {
/***
* Add a new column. DATA MUST BE SANITIZED BEFORE CALLING!
*
Expand Down Expand Up @@ -790,6 +790,8 @@ public function addColumn($columnName, $columnType = null) {
return array(
"status" => $r,
"error" => mysqli_error($this->getLink(), $r),
"column" => $columnName,
"type" => $columnType,
);
}
return array(
Expand Down
4 changes: 2 additions & 2 deletions js/admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions js/admin.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/admin.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/maps/admin.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/maps/admin.src.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ finalizeData = (skipFields = false, callback) ->
bounding_polygon_geojson: geo?.geoJsonBoundingBox
postData.carto_id = JSON.stringify cartoData
postData.project_id = _adp.projectId
postData.modified = Date.now()
postData.modified = Date.now() / 1000
try
postData.project_obj_id = _adp.fims.expedition.ark
catch
Expand Down Expand Up @@ -4749,7 +4749,7 @@ saveEditorData = (force = false, callback) ->
catch e
console.error "Couldn't check path count -- #{e.message}. Faking it."
pointCount = maxPathCount + 1
postData.modified = Date.now()
postData.modified = Date.now() / 1000
console.log "Sending to server", postData
args = "perform=save&data=#{jsonTo64 postData}"
debugInfoDelay = delay 10000, ->
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "amphibian-disease-tracker",
"version": "0.12.1",
"version": "0.12.2",
"description": "Amphibian Disease Tracker Portal",
"main": "",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion recordMigrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ function elapsed($start_time = null)
# Add columns not in $cols to $newCols, and append to $cols
foreach($row as $refCol => $colData) {
# Lookup col type
$colDataType = null;
foreach($db->getCols() as $colName => $colType) {
if(strtolower($colName) == strtolower($refCol)) {
$colDataType = $colType;
Expand All @@ -622,7 +623,7 @@ function elapsed($start_time = null)
} else if ($refCol == "modified") {
$colDataType = "decimal(32))";
break;
}
} else $colDataType = "text";
}
if(empty($colDataType)) $colDataType = "text";
# Put col in cols
Expand Down

0 comments on commit 7d6aa8e

Please sign in to comment.