MojoFacets.git
13 years agoadded backward compatiblity for data migration
Dobrica Pavlinusic [Sat, 5 Jun 2010 17:48:03 +0000 (19:48 +0200)]
added backward compatiblity for data migration

some time ago, I renamed changes to new_changes, but old data include
change filed, so we use it if found.

13 years agorename edits to changes
Dobrica Pavlinusic [Sat, 5 Jun 2010 17:38:51 +0000 (19:38 +0200)]
rename edits to changes

13 years agomore rigourous check of edits
Dobrica Pavlinusic [Sat, 5 Jun 2010 17:27:58 +0000 (19:27 +0200)]
more rigourous check of edits

13 years agofix json loading
Dobrica Pavlinusic [Sat, 5 Jun 2010 17:21:15 +0000 (19:21 +0200)]
fix json loading

13 years agodocument html table format in directory.html
Dobrica Pavlinusic [Sat, 5 Jun 2010 15:46:21 +0000 (17:46 +0200)]
document html table format in directory.html

13 years ago__normalize_header to cleanup names import-html-tables
Dobrica Pavlinusic [Sat, 5 Jun 2010 13:54:12 +0000 (15:54 +0200)]
__normalize_header to cleanup names

13 years agoproduce items structure
Dobrica Pavlinusic [Sat, 5 Jun 2010 13:46:58 +0000 (15:46 +0200)]
produce items structure

13 years agomove file import code into own package
Dobrica Pavlinusic [Sat, 5 Jun 2010 13:29:28 +0000 (15:29 +0200)]
move file import code into own package

13 years agoparse table using HTML::TableExtract
Dobrica Pavlinusic [Sat, 5 Jun 2010 13:08:29 +0000 (15:08 +0200)]
parse table using HTML::TableExtract

This will detect header as first line, and parse all other html files
with same number of (hardcoded) columns

13 years agosort actions by time ascending save_change
Dobrica Pavlinusic [Fri, 4 Jun 2010 21:34:59 +0000 (23:34 +0200)]
sort actions by time ascending

since we apply it in same order, this makes sense

13 years agorename changes to actions
Dobrica Pavlinusic [Fri, 4 Jun 2010 16:15:23 +0000 (18:15 +0200)]
rename changes to actions

13 years agosimplify modified dataset tracking
Dobrica Pavlinusic [Fri, 4 Jun 2010 15:37:04 +0000 (17:37 +0200)]
simplify modified dataset tracking

now we use session variable modified, and that state is internally
stored in $loaded->{$path}->{modified}

13 years agoMerge branch 'master' into save_change
Dobrica Pavlinusic [Fri, 4 Jun 2010 15:01:32 +0000 (17:01 +0200)]
Merge branch 'master' into save_change

13 years agodon't use $content - Mojo doesn't like it fix-empty-undef-edit
Dobrica Pavlinusic [Fri, 4 Jun 2010 14:59:23 +0000 (16:59 +0200)]
don't use $content - Mojo doesn't like it

Using content variable caused last bug which caused strange
serializations of perl hash when editing previously undefined
value and replacing it with 0, so I just replaced it with
new_content all around

13 years agoadded commit changes
Dobrica Pavlinusic [Thu, 3 Jun 2010 21:55:01 +0000 (23:55 +0200)]
added commit changes

13 years agoadded checkbox for dump of whole edit
Dobrica Pavlinusic [Thu, 3 Jun 2010 21:22:51 +0000 (23:22 +0200)]
added checkbox for dump of whole edit

13 years agojavascript show/hide of different statuses
Dobrica Pavlinusic [Thu, 3 Jun 2010 21:03:28 +0000 (23:03 +0200)]
javascript show/hide of different statuses

13 years agoreformat edits into table
Dobrica Pavlinusic [Thu, 3 Jun 2010 20:34:40 +0000 (22:34 +0200)]
reformat edits into table

13 years agosomewhat nicer results of apply
Dobrica Pavlinusic [Thu, 3 Jun 2010 20:00:38 +0000 (22:00 +0200)]
somewhat nicer results of apply

13 years agoapply edits on this or any other loaded dataset
Dobrica Pavlinusic [Thu, 3 Jun 2010 19:30:33 +0000 (21:30 +0200)]
apply edits on this or any other loaded dataset

This just reports found and missing elements by first unique value

13 years agoMerge branch 'master' into save_change
Dobrica Pavlinusic [Thu, 3 Jun 2010 17:25:58 +0000 (19:25 +0200)]
Merge branch 'master' into save_change

13 years agocorrectly disable radio button for loaded dataset
Dobrica Pavlinusic [Thu, 3 Jun 2010 17:10:27 +0000 (19:10 +0200)]
correctly disable radio button for loaded dataset

13 years agoadded remove edits link
Dobrica Pavlinusic [Thu, 3 Jun 2010 17:01:17 +0000 (19:01 +0200)]
added remove edits link

13 years agorebuild stats link on columns page
Dobrica Pavlinusic [Thu, 3 Jun 2010 16:09:41 +0000 (18:09 +0200)]
rebuild stats link on columns page

13 years agoMerge branch 'master' into save_change
Dobrica Pavlinusic [Thu, 3 Jun 2010 15:07:13 +0000 (17:07 +0200)]
Merge branch 'master' into save_change

13 years agoignore data/ and nytprof output
Dobrica Pavlinusic [Thu, 3 Jun 2010 14:12:33 +0000 (16:12 +0200)]
ignore data/ and nytprof output

13 years agoadded /config setup MASTER for replication
Dobrica Pavlinusic [Thu, 3 Jun 2010 13:56:36 +0000 (15:56 +0200)]
added /config setup MASTER for replication

13 years agoMerge branch 'master' into save_change
Dobrica Pavlinusic [Thu, 3 Jun 2010 13:22:13 +0000 (15:22 +0200)]
Merge branch 'master' into save_change

13 years agofix form submission
Dobrica Pavlinusic [Thu, 3 Jun 2010 13:09:36 +0000 (15:09 +0200)]
fix form submission

13 years agoadded /data/export
Dobrica Pavlinusic [Thu, 3 Jun 2010 12:25:51 +0000 (14:25 +0200)]
added /data/export

13 years agoexport filter
Dobrica Pavlinusic [Thu, 3 Jun 2010 11:55:11 +0000 (13:55 +0200)]
export filter

into simple one value per line format

13 years agoMerge branch 'master' into save_change
Dobrica Pavlinusic [Thu, 3 Jun 2010 10:54:40 +0000 (12:54 +0200)]
Merge branch 'master' into save_change

13 years agoadded hide button for changes
Dobrica Pavlinusic [Thu, 3 Jun 2010 10:52:42 +0000 (12:52 +0200)]
added hide button for changes

13 years agofix sorting of edits
Dobrica Pavlinusic [Thu, 3 Jun 2010 10:13:38 +0000 (12:13 +0200)]
fix sorting of edits

13 years agoload last saved columns with dataset
Dobrica Pavlinusic [Thu, 3 Jun 2010 09:41:38 +0000 (11:41 +0200)]
load last saved columns with dataset

13 years agostore columns in simple text file
Dobrica Pavlinusic [Wed, 2 Jun 2010 23:00:35 +0000 (01:00 +0200)]
store columns in simple text file

one selected column per line

13 years agogreat rename _perm -> _param
Dobrica Pavlinusic [Wed, 2 Jun 2010 22:44:37 +0000 (00:44 +0200)]
great rename _perm -> _param

13 years ago_loaded includes autoloader for a while
Dobrica Pavlinusic [Wed, 2 Jun 2010 22:43:19 +0000 (00:43 +0200)]
_loaded includes autoloader for a while

13 years agouse _param_or_session
Dobrica Pavlinusic [Wed, 2 Jun 2010 22:39:52 +0000 (00:39 +0200)]
use _param_or_session

13 years ago/data/stats for refresh
Dobrica Pavlinusic [Wed, 2 Jun 2010 22:35:29 +0000 (00:35 +0200)]
/data/stats for refresh

13 years agoextract __stats in own sub
Dobrica Pavlinusic [Wed, 2 Jun 2010 22:33:46 +0000 (00:33 +0200)]
extract __stats in own sub

13 years agosync storable mtime on first dump
Dobrica Pavlinusic [Wed, 2 Jun 2010 22:11:18 +0000 (00:11 +0200)]
sync storable mtime on first dump

13 years agoadded faceted links
Dobrica Pavlinusic [Wed, 2 Jun 2010 20:44:32 +0000 (22:44 +0200)]
added faceted links

13 years agoadded link to edits dump
Dobrica Pavlinusic [Wed, 2 Jun 2010 20:07:52 +0000 (22:07 +0200)]
added link to edits dump

13 years agodump edits
Dobrica Pavlinusic [Wed, 2 Jun 2010 20:02:26 +0000 (22:02 +0200)]
dump edits

13 years agorecord unique values in edit
Dobrica Pavlinusic [Wed, 2 Jun 2010 17:59:11 +0000 (19:59 +0200)]
record unique values in edit

13 years agodisplay unique columns
Dobrica Pavlinusic [Wed, 2 Jun 2010 17:41:56 +0000 (19:41 +0200)]
display unique columns

13 years agocheck uniqeness of values in fields
Dobrica Pavlinusic [Wed, 2 Jun 2010 17:17:06 +0000 (19:17 +0200)]
check uniqeness of values in fields

This are possible primary key candidates which we would like to record
in our changes

13 years agorename structured changes to edits
Dobrica Pavlinusic [Wed, 2 Jun 2010 16:35:51 +0000 (18:35 +0200)]
rename structured changes to edits

changes are just http requests while edits carry enough context
data to be applied on different dataset (full values as opposed to
just which element we need to change)

13 years agodisplay number of edits
Dobrica Pavlinusic [Wed, 2 Jun 2010 16:32:58 +0000 (18:32 +0200)]
display number of edits

13 years agouse hash with time
Dobrica Pavlinusic [Tue, 1 Jun 2010 20:41:55 +0000 (22:41 +0200)]
use hash with time

13 years agoadded time-travel
Dobrica Pavlinusic [Tue, 1 Jun 2010 20:41:25 +0000 (22:41 +0200)]
added time-travel

this allows to save changes with original timestamp

13 years agoextract time from filename
Dobrica Pavlinusic [Tue, 1 Jun 2010 19:02:08 +0000 (21:02 +0200)]
extract time from filename

13 years agouse changes from command-line
Dobrica Pavlinusic [Tue, 1 Jun 2010 18:38:48 +0000 (20:38 +0200)]
use changes from command-line

13 years agore-apply changes from /tmp
Dobrica Pavlinusic [Tue, 1 Jun 2010 18:30:38 +0000 (20:30 +0200)]
re-apply changes from /tmp

13 years agosync change file mtime
Dobrica Pavlinusic [Tue, 1 Jun 2010 18:27:15 +0000 (20:27 +0200)]
sync change file mtime

13 years agouse path from param if no session
Dobrica Pavlinusic [Tue, 1 Jun 2010 18:26:47 +0000 (20:26 +0200)]
use path from param if no session

13 years agoshow uid and submit time
Dobrica Pavlinusic [Tue, 1 Jun 2010 16:36:49 +0000 (18:36 +0200)]
show uid and submit time

13 years agosave changes which change data
Dobrica Pavlinusic [Tue, 1 Jun 2010 15:36:02 +0000 (17:36 +0200)]
save changes which change data

This is real modification log (you might say diff) which should
allow loading of different data set and application of changes to it

13 years agoadded $changes
Dobrica Pavlinusic [Tue, 1 Jun 2010 14:20:40 +0000 (16:20 +0200)]
added $changes

13 years agocleanup dump_path usage load-changes rm
Dobrica Pavlinusic [Tue, 1 Jun 2010 13:34:23 +0000 (15:34 +0200)]
cleanup dump_path usage

13 years agomove automatic loader into _loaded
Dobrica Pavlinusic [Thu, 27 May 2010 21:42:42 +0000 (23:42 +0200)]
move automatic loader into _loaded

13 years agoload data for edit on demand
Dobrica Pavlinusic [Thu, 27 May 2010 21:28:16 +0000 (23:28 +0200)]
load data for edit on demand

13 years agodocument master-slave setup
Dobrica Pavlinusic [Thu, 27 May 2010 20:51:37 +0000 (22:51 +0200)]
document master-slave setup

13 years agoMerge branch 'master' into fix-empty-undef-edit
Dobrica Pavlinusic [Thu, 27 May 2010 20:13:28 +0000 (22:13 +0200)]
Merge branch 'master' into fix-empty-undef-edit

13 years agodisable mtime sync with source file
Dobrica Pavlinusic [Thu, 27 May 2010 20:12:31 +0000 (22:12 +0200)]
disable mtime sync with source file

13 years agoempty value for previously undef fields not update
Dobrica Pavlinusic [Thu, 27 May 2010 20:05:18 +0000 (22:05 +0200)]
empty value for previously undef fields not update

13 years agoimplement replication checkbox
Dobrica Pavlinusic [Thu, 27 May 2010 19:19:53 +0000 (21:19 +0200)]
implement replication checkbox

use MASTER enviroment variable contains url of another instance
of mojo_facets, and user interface shows checkbox which allow
replication to master instance.

13 years agoload change form inline using jQuery .load
Dobrica Pavlinusic [Thu, 27 May 2010 18:02:05 +0000 (20:02 +0200)]
load change form inline using jQuery .load

13 years agoreset save_path
Dobrica Pavlinusic [Thu, 27 May 2010 17:17:58 +0000 (19:17 +0200)]
reset save_path

13 years agoadded boolean like field
Dobrica Pavlinusic [Thu, 27 May 2010 17:10:50 +0000 (19:10 +0200)]
added boolean like field

13 years agoenable creation of non-existing fields
Dobrica Pavlinusic [Thu, 27 May 2010 16:44:14 +0000 (18:44 +0200)]
enable creation of non-existing fields

13 years agodisplay storable size
Dobrica Pavlinusic [Thu, 27 May 2010 16:19:05 +0000 (18:19 +0200)]
display storable size

This allows us to identify which dumps are available and how much
memory will they use when loaded (or even compare file size between
source file format and our storable serialization)

13 years agoreload file if changed
Dobrica Pavlinusic [Thu, 27 May 2010 16:05:07 +0000 (18:05 +0200)]
reload file if changed

13 years agoinsert save link only once
Dobrica Pavlinusic [Thu, 27 May 2010 15:48:11 +0000 (17:48 +0200)]
insert save link only once

13 years agoload storable dump
Dobrica Pavlinusic [Thu, 27 May 2010 15:43:40 +0000 (17:43 +0200)]
load storable dump

13 years agocreate save link
Dobrica Pavlinusic [Thu, 27 May 2010 14:32:41 +0000 (16:32 +0200)]
create save link

This allows us to preserve our changes in storable dump

13 years agoreturn correct status codes and content
Dobrica Pavlinusic [Thu, 27 May 2010 14:07:53 +0000 (16:07 +0200)]
return correct status codes and content

13 years agoone more redirect to load if no path in session
Dobrica Pavlinusic [Thu, 27 May 2010 13:34:06 +0000 (15:34 +0200)]
one more redirect to load if no path in session

13 years agobetter validate _row_id
Dobrica Pavlinusic [Thu, 27 May 2010 11:58:02 +0000 (13:58 +0200)]
better validate _row_id

And allow 0 for first element :-)

13 years agoinvalidate sorted and filtered values on edit
Dobrica Pavlinusic [Thu, 27 May 2010 11:52:35 +0000 (13:52 +0200)]
invalidate sorted and filtered values on edit

13 years agosave edited data back to table
Dobrica Pavlinusic [Thu, 27 May 2010 11:40:39 +0000 (13:40 +0200)]
save edited data back to table

13 years agostrip whitespace before and after value
Dobrica Pavlinusic [Thu, 27 May 2010 10:14:24 +0000 (12:14 +0200)]
strip whitespace before and after value

This gets somehow generated when I try to access table element using
jQuery.text() on it

13 years ago_row_id now include offset in dataset array
Dobrica Pavlinusic [Thu, 27 May 2010 10:08:28 +0000 (12:08 +0200)]
_row_id now include offset in dataset array

this allows edits to reference exact element to change

14 years agoMerge branch 'master' of github.com:dpavlin/mojo_facets
Dobrica Pavlinusic [Wed, 26 May 2010 21:31:48 +0000 (23:31 +0200)]
Merge branch 'master' of github.com:dpavlin/mojo_facets

14 years agofix name of storable file
Dobrica Pavlinusic [Wed, 26 May 2010 21:31:28 +0000 (23:31 +0200)]
fix name of storable file

14 years agoMerge branch 'master' of github.com:dpavlin/mojo_facets
Dobrica Pavlinusic [Wed, 26 May 2010 21:11:30 +0000 (23:11 +0200)]
Merge branch 'master' of github.com:dpavlin/mojo_facets

14 years agoMerge branch 'master' of github.com:dpavlin/mojo_facets
Dobrica Pavlinusic [Wed, 26 May 2010 21:11:30 +0000 (23:11 +0200)]
Merge branch 'master' of github.com:dpavlin/mojo_facets

14 years agosave loaded files as storable
Dobrica Pavlinusic [Wed, 26 May 2010 20:37:30 +0000 (22:37 +0200)]
save loaded files as storable

14 years agoredirect to load when leeded
Dobrica Pavlinusic [Wed, 26 May 2010 19:53:06 +0000 (21:53 +0200)]
redirect to load when leeded

14 years agoremove unpack
Dobrica Pavlinusic [Wed, 26 May 2010 18:58:09 +0000 (20:58 +0200)]
remove unpack

It's not strict enough to be really useful

14 years agoremove unpack
Dobrica Pavlinusic [Wed, 26 May 2010 18:58:09 +0000 (20:58 +0200)]
remove unpack

It's not strict enough to be really useful

14 years agounpack numeric values separated by commas
Dobrica Pavlinusic [Wed, 26 May 2010 16:57:29 +0000 (18:57 +0200)]
unpack numeric values separated by commas

This is first multi-value quirk for text file format, based on
"Plants For a Future" data set: species.txt has numeric comma seprated values
so we just unroll them to get nice facets

14 years agoauto submit form on limit change
Dobrica Pavlinusic [Wed, 26 May 2010 16:12:17 +0000 (18:12 +0200)]
auto submit form on limit change

this saves one click on refresh

14 years agosort numeric facets with more than 5 values ascending
Dobrica Pavlinusic [Wed, 26 May 2010 16:01:43 +0000 (18:01 +0200)]
sort numeric facets with more than 5 values ascending

This heuristics allow us to see simple yes/no/maybe lists still as a
count, especially if they are numeric

14 years agoreformat changes as table and show relative time
Dobrica Pavlinusic [Wed, 26 May 2010 15:42:19 +0000 (17:42 +0200)]
reformat changes as table and show relative time

14 years agoextraceted from http://ejohn.org/files/pretty.js
Dobrica Pavlinusic [Wed, 26 May 2010 15:31:27 +0000 (17:31 +0200)]
extraceted from http://ejohn.org/files/pretty.js

14 years agonumeric facets with invalid data sort fix
Dobrica Pavlinusic [Wed, 26 May 2010 13:00:32 +0000 (15:00 +0200)]
numeric facets with invalid data sort fix

This doesn't actually produce correct sort order, but we work on
GIGO principle: garbage in - garbage out

If you filter just valid numeric values sorting will work, and corrupted
sort order as it is now is clear indication that your data isn't clean

14 years agotest numeric columns with non-numeric value
Dobrica Pavlinusic [Wed, 26 May 2010 12:28:48 +0000 (14:28 +0200)]
test numeric columns with non-numeric value

14 years agoadded repetable column
Dobrica Pavlinusic [Wed, 26 May 2010 12:18:41 +0000 (14:18 +0200)]
added repetable column