Project

General

Profile

Statistics
| Revision:
  • svn:ignore: extern

# Date Author Comment
12884 03/24/2014 05:22 PM Aaron Marcuse-Kubitza

fix: validation/aggregating/specimens/qualitative_validations_specimens.sql: changed "Full inner join" to "Full outer join" because a FULL JOIN is a type of outer join, not inner join

12883 03/24/2014 05:04 PM Aaron Marcuse-Kubitza

/README.TXT: calls to `inputs/run postprocess`: direct user to refer to inputs/run for this, so the runtime doesn't have to be updated in multiple places

12882 03/24/2014 05:02 PM Aaron Marcuse-Kubitza

inputs/run: postprocess(): updated runtime (20 min)

12881 03/24/2014 05:01 PM Aaron Marcuse-Kubitza

/README.TXT: Schema changes: added steps to update staging table column names on the local machine and vegbiendev

12880 03/24/2014 04:50 PM Aaron Marcuse-Kubitza

fix: schemas/VegCore/mk_derived: added `EOF` at end to avoid (benign) "here-document delimited by end-of-file" warnings on Linux

12879 03/24/2014 01:49 AM Aaron Marcuse-Kubitza

mappings/VegCore.htm: regenerated from wiki: rename specimenHolderInstitutions to specimen_duplicate_institutions, as decided in the 2014-03-13 conference call (wiki.vegpath.org/2014-03-13_conference_call#schema-changes-2). note that most schema changes (such as this one) involve mappings changes, which are handled automatically by `inputs/run postprocess; yes|make inputs/{NVS,SALVIAS,TEAM}/test`.

12878 03/24/2014 01:43 AM Aaron Marcuse-Kubitza

bugfix: lib/runscripts/table.run: schema/make calls: need to use `make schema` instead because old-style datasources don't have a top-level runscript (the absence of this identifies them as old-style so inputs/input.Makefile works correctly)

12877 03/24/2014 01:21 AM Aaron Marcuse-Kubitza

/README.TXT: Maintenance: VegCore data dictionary: `make inputs/{NVS,SALVIAS,TEAM}/test`: recorded runtime (30 s)

12876 03/24/2014 01:17 AM Aaron Marcuse-Kubitza

/README.TXT: Maintenance: VegCore data dictionary: `make inputs/{NVS,SALVIAS,TEAM}/test`: prepended `time` to enable obtaining the runtime

12875 03/24/2014 01:11 AM Aaron Marcuse-Kubitza

/README.TXT: Maintenance: VegCore data dictionary: `inputs/run postprocess`: updated runtime (20 min)

12874 03/24/2014 12:45 AM Aaron Marcuse-Kubitza

fix: schemas/util.sql: trim(): by default, cascadingly drop dependent columns so that they don't prevent trim() from succeeding. note that this requires the dependent columns to then be manually re-created.

12873 03/23/2014 11:43 PM Aaron Marcuse-Kubitza

bugfix: inputs/GBIF/table.run: switched to using lib/runscripts/table.run instead of mysql.table.run because some subdirs (Source/) need the regular table.run to work properly. mysql.table.run should instead be used directly by subdirs that use the MySQL install.

12872 03/22/2014 06:20 AM Aaron Marcuse-Kubitza

bugfix: lib/sh/util.sh: DON'T do `shopt -s lastpipe` because this causes a segfault on Linux in stderr_matches(). (it also isn't supported on Mac.) use @PIPESTATUS instead. note that we do not currently need lastpipe, since we use @PIPESTATUS (which actually provides more functionality for our purposes).

12871 03/22/2014 06:02 AM Aaron Marcuse-Kubitza

fix: lib/sh/util.sh: echo_func(): file/line #: display with regular color because the lighter color actually draws attention to rather than away from the faded text

12870 03/22/2014 05:59 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: added plain()

12869 03/22/2014 05:56 AM Aaron Marcuse-Kubitza

inputs/XAL/Specimen/test.xml.ref: updated for sample data.csv, which contains the columns as a CSV. this fixes a bug where a map.csv must be used on a table that contains the same set of columns (ie. not one with no columns if there are any mappings).

12868 03/22/2014 05:50 AM Aaron Marcuse-Kubitza

bugfix: lib/sql_io.py: put_table(): is_literals: `return sql.value(cur): need to use sql.value_or_none() instead to support multi-row functions, such as _split() used in specimens data`

12867 03/22/2014 05:06 AM Aaron Marcuse-Kubitza

fix: inputs/input.Makefile: don't treat *.xml as data files since these are not currently supported

12866 03/22/2014 04:55 AM Aaron Marcuse-Kubitza

lib/runscripts/util.run: on_exit(): documented that users can also override gateway()/fallback() to perform other commands (or no commands) after the script is read

12865 03/22/2014 04:53 AM Aaron Marcuse-Kubitza

bugfix: lib/sh/db.sh: pg_table_exists(): need ! to negate boolean result

12864 03/22/2014 04:44 AM Aaron Marcuse-Kubitza

fix: lib/runscripts/table.run: table_make_install(): need to inform the user when it skips installing a table, because this is often unexpected

12863 03/22/2014 04:43 AM Aaron Marcuse-Kubitza

fix: lib/runscripts/util.run: run_args_cmd(): need to indent the output of the target that it's running

12862 03/22/2014 04:15 AM Aaron Marcuse-Kubitza

lib/runscripts/table.run: removed no longer used datasrc_make_install()

12861 03/22/2014 04:07 AM Aaron Marcuse-Kubitza

fix: lib/sh/util.sh: fade(): use medium gray instead of light gray because it fades on white and black backgrounds

12860 03/22/2014 03:54 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: echo_func(): fade the file/line # to avoid distracting from the function call in the default log output

12859 03/22/2014 03:51 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: added fade()

12858 03/22/2014 03:37 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: highlight_msg(): renamed to highlight_log_msg() to clarify that this contains log++-specific functionality

12857 03/22/2014 03:35 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: moved terminal formatting commands to own section

12856 03/22/2014 03:34 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: highlight_msg(): moved formatting code into separate format() function

12855 03/22/2014 03:21 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: dp(): renamed to ps() to corresponding with pv/pf

12854 03/22/2014 03:19 AM Aaron Marcuse-Kubitza

lib/sh/make.sh: echo_target: use `log-- echo_func`, which now puts the target name first but also provides much-needed indentation

12853 03/22/2014 03:16 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: echo_func(): put file/line # after function call instead of before so the function name is listed first

12852 03/22/2014 03:13 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: echo_func(): usage: removed no longer used/implemented minor=1 switch. use log++ instead.

12851 03/22/2014 03:07 AM Aaron Marcuse-Kubitza

lib/runscripts/datasrc_dir.run: import(): use new schema/make, schema/rm

12850 03/22/2014 02:59 AM Aaron Marcuse-Kubitza

lib/runscripts/table.run: load_data(): use the much simpler `schema/make` run target, rather than outsourcing to the legacy Makefile via the convoluted datasrc_make_install()/table_make_install()

12849 03/22/2014 02:26 AM Aaron Marcuse-Kubitza

lib/runscripts/datasrc_dir.run: added schema/rm(), schema/make()

12848 03/22/2014 02:19 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: ignore_err_msg(): usage: added $ignore_e param from stderr_matches()

12847 03/22/2014 02:14 AM Aaron Marcuse-Kubitza

lib/runscripts/table.run: psql: always include ; at end of statement

12846 03/22/2014 01:39 AM Aaron Marcuse-Kubitza

fix: lib/sh/db.sh: pg_cmd(): hide PGPASSWORD at the normal verbosity so that the value of it doesn't appear in any log files

12845 03/22/2014 01:08 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: log_hint(): renamed to log_err_hint() for clarity, because this applies only to hints for errors

12844 03/22/2014 01:06 AM Aaron Marcuse-Kubitza

bugfix: lib/sh/util.sh: log_hint!(): use log_err instead of log_info because hints as used here are attached to (possibly benign) errors. for other uses, use mk_hint().

12843 03/22/2014 01:00 AM Aaron Marcuse-Kubitza

fix: lib/sh/util.sh: highlight_msg(): don't ' '-pad already-formatted text

12842 03/22/2014 12:57 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: manual terminal escape sequences: use highlight_msg() instead

12841 03/22/2014 12:53 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: highlight_msg(): auto-add padding around text if there is a background

12840 03/22/2014 12:51 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: highlight_msg(): use $format itself as the $highlight boolean

12839 03/22/2014 12:48 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: highlight_msg(): split apart the testing of $format and can_highlight_msg

12838 03/22/2014 12:39 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: added has_bg()

12837 03/22/2014 12:28 AM Aaron Marcuse-Kubitza

bugfix: lib/sh/util.sh: highlight_msg(): need to reset any existing formatting before applying new formatting

12836 03/22/2014 12:25 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: added mk_hint() and use it in log_hint!()

12835 03/22/2014 12:16 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: bg_cmd(): also log the command being run

12834 03/22/2014 12:07 AM Aaron Marcuse-Kubitza

fix: lib/sh/util.sh: need `function` before functions that have an alias with the same name

12833 03/22/2014 12:04 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: log!(): use new log:()

12832 03/22/2014 12:00 AM Aaron Marcuse-Kubitza

lib/sh/util.sh: added log:(), which sets an explicit log_level. this also simplifies log+().

12831 03/21/2014 11:55 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: log+(): set log_level before PS4 so that the PS4 expr doesn't also need to add to log_level

12830 03/21/2014 11:51 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: removed no longer needed log+ alias (which had been renamed from clog+)

12829 03/21/2014 11:48 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: clog*: renamed to log* for clarity (possible now that log* is no longer used for function-local log_level setting)

12828 03/21/2014 11:44 PM Aaron Marcuse-Kubitza

: local setting of log_level: use log_local instead of relying on the log aliases, so that these aliases can instead be used for wrapping commands (the more common use case)

12827 03/21/2014 11:40 PM Aaron Marcuse-Kubitza

bugfix: lib/sh/util.sh: verbosity_compat alias: need to use `declare verbosity="$verbosity"` instead of `declare verbosity`, which would just clear $verbosity

12826 03/21/2014 11:38 PM Aaron Marcuse-Kubitza

bugfix: lib/sh/util.sh: verbosity_min alias: need to use `declare verbosity="$verbosity"` instead of log_local now that verbosity is not one of the vars changed by log++

12825 03/21/2014 11:30 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: log+(): use easier-to-understand log_local instead of prefix-assignments to limit assignments to the invoked command

12824 03/21/2014 11:30 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: log+(): use easier-to-understand log_local instead of prefix-assignments to limit assignments to the invoked command

12823 03/21/2014 10:57 PM Aaron Marcuse-Kubitza

: use clog instead of "log*"

12822 03/21/2014 10:45 PM Aaron Marcuse-Kubitza

bugfix: lib/sh/util.sh: log+(): removed spurious ; between setting of PS4 and log_level, which was causing erratic mismatches between PS4 and log_level. (the ; caused $PS4 to be set in the caller when invoked via one of the clog* aliases, rather than being passed as a command-specific env var.)

12821 03/21/2014 10:30 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: $verbosity: stay constant at what the user set it to instead of changing in tandem with $log_level, to facilitate debugging verbosity/log_level-related issues

12820 03/21/2014 10:11 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: log+(): usage: use aliases instead of ""-ed function names

12819 03/21/2014 06:58 PM Aaron Marcuse-Kubitza

added schemas/VegCore.ERD.pdf symlink for easy access

12818 03/21/2014 06:50 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: log_err(): use red background for better visibility of errors, in the same way that lib/exc.py print_ex() does for column-based import

12817 03/21/2014 06:44 PM Aaron Marcuse-Kubitza

bugfix: lib/sh/util.sh: removed echo_func in functions used by log++, to avoid spurious highlighted output

12816 03/21/2014 06:40 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: added missing clog+ alias

12815 03/21/2014 06:35 PM Aaron Marcuse-Kubitza

bugfix: lib/sh/util.sh: log_hint(): use the standard log_fd and log_info() format, not err_fd and log_err() format, for hint messages

12814 03/21/2014 06:27 PM Aaron Marcuse-Kubitza

fix: lib/sh/util.sh: log_msg!(): indent each line, not just the first

12813 03/21/2014 06:26 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: added split_lines()

12812 03/21/2014 06:05 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: log(): factored out helper function log_msg!()

12811 03/21/2014 06:00 PM Aaron Marcuse-Kubitza

fix: lib/sh/util.sh: highlight_msg(): bold instead of underlining because the underlining interferes with the readability of the commands

12810 03/21/2014 05:57 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: highlight_msg(): allow turning off formatting w/ empty $format

12809 03/21/2014 05:53 PM Aaron Marcuse-Kubitza

fix: lib/sh/util.sh: log_err() calls: removed manual highlighting

12808 03/21/2014 05:51 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: log_err(): highlight all error messages using highlight_msg()'s new $format

12807 03/21/2014 05:45 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: highlight_msg(): support custom format

12806 03/21/2014 05:35 PM Aaron Marcuse-Kubitza

lib/sh/db.sh: pg_*_exists(): log the DB statements to check this at a higher log_level so that they don't clutter up the log output

12805 03/21/2014 05:25 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: log(): highlight log_level 1 messages to stand out against other output, for easier debugging

12804 03/21/2014 04:31 PM Aaron Marcuse-Kubitza

*{.sh,run}: stderr_matches() wrapper calls: removed no longer needed prep_try/rethrow

12803 03/21/2014 04:12 PM Aaron Marcuse-Kubitza

bugfix: catch(): also need to support $1='' because this is a now a use case of ignore_e()

12802 03/21/2014 04:02 PM Aaron Marcuse-Kubitza

bugfix: lib/sh/util.sh: ignore_err_msg(): also need to ignore false exit status on no match

12801 03/21/2014 03:49 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: stderr_matches(): moved prep_try/rethrow into the function itself so that callers don't have to wrap this function in a complex sequence of prep_try/rethrow statements

12800 03/21/2014 03:42 PM Aaron Marcuse-Kubitza

*{.sh,run}: stderr_matches() wrapper calls: removed no longer needed prep_try/rethrow

12799 03/21/2014 03:42 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: stderr_matches(): moved prep_try/rethrow into the function itself so that callers don't have to wrap this function in a complex sequence of prep_try/rethrow statements

12798 03/21/2014 03:25 PM Aaron Marcuse-Kubitza

lib/sh/util.sh: added rethrow_exit alias

12797 03/21/2014 03:10 PM Aaron Marcuse-Kubitza

fix: lib/sh/db.sh: pg_table_exists(): use stderr_matches() rather than just the exit status. this also avoids highlighting the benign error.

12796 03/21/2014 03:00 PM Aaron Marcuse-Kubitza

fix: lib/sh/db.sh: pg_table_exists(): use stderr_matches() rather than just the exit status. this also avoids highlighting the benign error.

12795 03/21/2014 02:16 AM Aaron Marcuse-Kubitza

fix: inputs/input.Makefile: removed no longer used special handling of XML inputs, support for which was never added to the Makefile. (bin/map, however, does support importing an XML file into a database.) this fixes a bug in XAL, which used to abort with an error but now just imports an empty table.

12794 03/21/2014 12:34 AM Aaron Marcuse-Kubitza

fix: inputs/input.Makefile: %/install: don't ignore errors if table does not exist, to ensure a proper errexit. this is now possible because every dir that this target is being run on should be a data dir. (Source/ used to be a metadata-only dir.)

12793 03/21/2014 12:31 AM Aaron Marcuse-Kubitza

bugfix: inputs/input.Makefile: $(cleanup): need `set -o pipefail`

12792 03/21/2014 12:02 AM Aaron Marcuse-Kubitza

inputs/VegBank/run: `rm=1 import()`: updated runtime (1 h)

12791 03/20/2014 11:54 PM Aaron Marcuse-Kubitza

inputs/VegBank/taxon_observation.**/test.xml.ref: updated inserted row count

12790 03/20/2014 11:54 PM Aaron Marcuse-Kubitza

inputs/VegBank/projectcontributor_/test.xml.ref: updated inserted row count

12789 03/20/2014 10:53 PM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: is_constant(util.col_ref): updated to include standard newline at beginning of comment (applies to newly-imported staging tables)

12788 03/20/2014 10:44 PM Aaron Marcuse-Kubitza

bugfix: inputs/VegBank/import_order.txt: added missing project, needed to trigger the staging table renaming for the project table

12787 03/20/2014 10:42 PM Aaron Marcuse-Kubitza

inputs/VegBank/run: documented `rm=1 import()` runtime (>1.5 h)

12786 03/20/2014 10:40 PM Aaron Marcuse-Kubitza

inputs/VegBank/run: documented `datasrc_make sql/install` runtime (25 min)

12785 03/20/2014 08:27 PM Aaron Marcuse-Kubitza

inputs/MO/Specimen/test.xml.ref: updated, which adds dateCollected mappings