Project

General

Profile

Statistics
| Revision:

# Date Author Comment
6946 12/19/2012 12:30 PM Aaron Marcuse-Kubitza

import_all: Run the import directly into a new, already-versioned public schema. This removes the need to manually rename the schema after import, and allows the backup commands to use the stored $version shell variable to refer to the last import.

6945 12/19/2012 12:25 PM Aaron Marcuse-Kubitza

schemas/Makefile: %/publish: Added instruction to run `unset version` after the command, to clear the $version shell variable which will be set by import_all

6944 12/19/2012 12:12 PM Aaron Marcuse-Kubitza

README.TXT: Data import: Replaced <import_name> with <version> because the import name is now just the version

6943 12/19/2012 12:10 PM Aaron Marcuse-Kubitza

README.TXT: Data import: Replaced r<revision> with <version> because the version string is now equal to r<revision>

6942 12/19/2012 12:09 PM Aaron Marcuse-Kubitza

README.TXT: Backups: Replaced <date> with <version> because the date is no longer included in the version string

6941 12/19/2012 12:08 PM Aaron Marcuse-Kubitza

README.TXT: Name archived imports without the "public." prefix so that their backups will work with the new `make backups/%.backup/remove` command, which does not add back the prefix

6940 12/19/2012 11:56 AM Aaron Marcuse-Kubitza

backups/Makefile; $(public*): Don't add a "public." prefix to get the name of the public schema

6939 12/19/2012 11:40 AM Aaron Marcuse-Kubitza

backups/Makefile: Removed no longer used $(rmSchema)

6938 12/19/2012 11:39 AM Aaron Marcuse-Kubitza

backups/Makefile: Use \$(rmSchemaCmd) from lib/common.Makefile instead of \$(rmSchema)

6937 12/19/2012 11:20 AM Aaron Marcuse-Kubitza

vegbien_dest: Use $version as $public when $public not provided. When neither is provided, continue to use "public" and also set $version to that.

6936 12/19/2012 11:11 AM Aaron Marcuse-Kubitza

schemas/Makefile: Installation: rotate: Use just the version, without the "public." prefix

6935 12/19/2012 11:04 AM Aaron Marcuse-Kubitza

schemas/Makefile: Installation: `public/install public%/install`: Generalized to /install to allow public schema versions with any name. This requires moving `/install: %.sql` before it to override it.

6934 12/19/2012 11:00 AM Aaron Marcuse-Kubitza

schemas/Makefile: Installation: Merged public/install and public%/install

6933 12/19/2012 10:54 AM Aaron Marcuse-Kubitza

schemas/Makefile: Installation: Moved %/uninstall to beginning of section because it applies to all schemas

6932 12/19/2012 10:52 AM Aaron Marcuse-Kubitza

schemas/Makefile: Installation: public: Generalized public%/publish to %/publish so that public schema versions don't have to start with public_

6931 12/19/2012 10:34 AM Aaron Marcuse-Kubitza

schemas/Makefile: Installation: %/uninstall: Also display schema delete confirmation for schemas whose name is just the version suffix (r<revision #>)

6930 12/19/2012 10:32 AM Aaron Marcuse-Kubitza

schemas/Makefile: Merged public%/uninstall and %/uninstall

6929 12/19/2012 09:49 AM Aaron Marcuse-Kubitza

lib/common.Makefile: Added version target, which prints the current $(version) value

6928 12/19/2012 09:36 AM Aaron Marcuse-Kubitza

schemas/Makefile: Installation: public: public%/uninstall: Fixed bug where need to remove the specified version of the public schema, not public itself. Generalized $(confirmRmPublicSchema) so it could also be used for named versions of the public schema. Inlined $(rmPublicSchema) since it's now only used in one place.

6927 12/19/2012 09:26 AM Aaron Marcuse-Kubitza

lib/common.Makefile: Revisions: $(version): Use just the revision # to avoid cluttering the schema and log file names with long datetime strings

6926 12/19/2012 09:25 AM Aaron Marcuse-Kubitza

schemas/Makefile: public%/install: schema comment: Include current date/time after version

6925 12/19/2012 09:20 AM Aaron Marcuse-Kubitza

lib/common.Makefile: Replaced no longer used $(date) with function to generate human-readable text date (rather than date to put in filename). Removed leading zeros from date and hour. Added timezone.

6924 12/19/2012 09:07 AM Aaron Marcuse-Kubitza

backups/Makefile: Removed no longer used $(dateFmt), $(mtime)

6923 12/19/2012 08:59 AM Aaron Marcuse-Kubitza

backups/Makefile: Removed %.backup/rotate, because this incorrectly causes the current time rather than the version to be used in the backup filename. The version should instead be specified in the backup filename when it's created.

6922 12/19/2012 08:51 AM Aaron Marcuse-Kubitza

schemas/Makefile: Installation: public: Added public%/publish to replace the current public schema with the given version

6921 12/19/2012 08:37 AM Aaron Marcuse-Kubitza

schemas/Makefile: Installation: public: public/uninstall: Added public%/uninstall as a target to allow uninstalling versions of the public schema

6920 12/19/2012 08:30 AM Aaron Marcuse-Kubitza

schemas/Makefile: Installation: public: public%/install: Add a comment on the schema containing the versioned schema name, so that if the schema is later renamed to just public (i.e. "published" as the current version), it will still be possible to tell which version the public schema came from

6919 12/19/2012 08:22 AM Aaron Marcuse-Kubitza

schemas/Makefile: Installation: public: Added public%/install, to install a version of the public schema

6918 12/19/2012 07:59 AM Aaron Marcuse-Kubitza

schemas/Makefile: Removed unused $(os)

6917 12/19/2012 07:58 AM Aaron Marcuse-Kubitza

schemas/Makefile: Removed unused $(SED)

6916 12/19/2012 06:22 AM Aaron Marcuse-Kubitza

Moved schemas-related commands from root Makefile to schemas/Makefile

6915 12/19/2012 06:15 AM Aaron Marcuse-Kubitza

Makefiles: Factored out common vars/functions into lib/common.Makefile

6914 12/19/2012 05:59 AM Aaron Marcuse-Kubitza

root Makefile: $(psqlNoSearchPath): Merged $(psqlAsBien) into it because it's the only place $(psqlAsBien) is used

6913 12/19/2012 05:56 AM Aaron Marcuse-Kubitza

root Makefile: $(psqlAsBien): Use psql_script_vegbien instead of psql_vegbien, which adds $(psqlOpts) itself

6912 12/19/2012 05:50 AM Aaron Marcuse-Kubitza

schemas/Makefile: Include lib/common.Makefile

6911 12/19/2012 05:23 AM Aaron Marcuse-Kubitza

inputs/import.stats.xls: Reformatted so the first by column import and the comparison by row import will fit on the same page when printed on portrait-mode letter paper

6910 12/19/2012 05:10 AM Aaron Marcuse-Kubitza

inputs/import.stats.xls: Changed import type labels to By row/By column so they would fit into one field, leaving the extra field free to contain the revision #

6909 12/19/2012 05:02 AM Aaron Marcuse-Kubitza

lib/common.Makefile: Revisions: Allow $(version) to be overridden in the environment, so that the public schema and all log files share the same, pregenerated version

6908 12/19/2012 04:16 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Merged provider_view, provider_count, and owner_count into provider_count, using the combining query for Brad's data providers page at <http://bien.nceas.ucsb.edu/bien/people/data-providers/>

6907 12/19/2012 01:23 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: sync_taxon_trait_to_view(): Changed pkey to index because there can be multiple values of the same taxon's trait from different observations

6906 12/19/2012 01:16 AM Aaron Marcuse-Kubitza

mappings/Makefile: VegCore.csv: Filter out the VegCore tables so they are not matched as terms. This is necessary because some terms have the same name as a table, but the term should be the match rather than the table.

6905 12/19/2012 12:29 AM Aaron Marcuse-Kubitza

sql.py: DbConn.col_info(): raising sql_gen.NoUnderlyingTableException: Fixed bug where also need to catch DoesNotExistException, which is thrown by ::regclass

6904 12/19/2012 12:26 AM Aaron Marcuse-Kubitza

sql.py: DbConn.col_info(): Fixed bug where need to run run_query() recoverably, because this query throws an exception if the column's table does not exist (the information_schema query just returned no rows)

6903 12/19/2012 12:22 AM Aaron Marcuse-Kubitza

sql.py: DbConn.col_info(): Fixed bug where need to use pg_get_expr() on pg_attrdef.adbin instead of shortcut field adsrc, because adsrc does not include schema qualifiers on table names (including strings passed to `nextval('..._seq'::regclass)`)

6902 12/18/2012 11:42 PM Aaron Marcuse-Kubitza

sql.py: DbConn.col_info(): Fixed bug where need to pass through cacheable param to run_query()

6901 12/18/2012 11:41 PM Aaron Marcuse-Kubitza

sql.py: DbConn.col_info(): Fixed bug where need to use .to_str(self) instead of self.esc_value() because self.esc_value() expects a value, not a sql_gen.Literal instance

6900 12/18/2012 11:34 PM Aaron Marcuse-Kubitza

sql.py: DbConn.col_info(): Fixed bug where self needs to be used everywhere that db normally is, because this is a DbConn method rather than a global function

6899 12/18/2012 11:31 PM Aaron Marcuse-Kubitza

sql.py: DbConn.col_info(): For PostgreSQL, use pg_catalog tables directly instead of their views in information_schema. This allows using ::regclass to look up the table in the search_path, and fixes a bug in imports with an explicit public schema where column types were looked up in public instead of public.<version>. Also don't wrap default using sql_gen.as_Code() when it's None (indicating no default value, aka default=NULL), because this value is interpreted specially by sql_gen.TypedCol.

6898 12/18/2012 11:06 PM Aaron Marcuse-Kubitza

inputs/Makefile: Input data: $(rsyncSrcs): Also include log files other than install.log.sql

6897 12/18/2012 09:41 PM Aaron Marcuse-Kubitza

import_all: Run all imports (not just the main datasources' import) with $import_source turned off, so that the Source tables will not be imported a second time when the datasource's main tables are imported. Note that it's not necessary to wait for asynchronous commands after the jobs for the main import are started (so that $import_source is not unset until after they are started), because with_all does not return until all jobs are started and have noted the $import_source setting in effect in the shell environment.

6896 12/18/2012 09:32 PM Aaron Marcuse-Kubitza

import_all: Source tables import: Fixed bug where need to use $all option to with_all to also include special datasources starting with "."

6895 12/18/2012 09:23 PM Aaron Marcuse-Kubitza

make_analytical_db: Also create taxon_trait materialized view

6894 12/17/2012 08:17 PM Aaron Marcuse-Kubitza

inputs/*/*/map.csv: Reverted special OMIT mappings for input columns that have the same name as a VegCore table and have not yet been mapped to a VegCore term

6893 12/17/2012 08:06 PM Aaron Marcuse-Kubitza

mappings/Makefile: VegCore.csv: Filter out the VegCore tables so they are not matched as terms. This is necessary because some terms have the same name as a table, but the term should be the match rather than the table.

6892 12/17/2012 08:04 PM Aaron Marcuse-Kubitza

mappings/VegCore.csv: Changed line endings to \r\n to match the output of filter_out_ci

6891 12/17/2012 05:51 PM Aaron Marcuse-Kubitza

inputs/CTFS/TaxonOccurrence/map.csv: Mapped SpeciesAuthority

6890 12/17/2012 04:59 PM Aaron Marcuse-Kubitza

backups/Makefile: Synchronization: $(remote): Fixed bug where need trailing / at end of path

6889 12/17/2012 04:32 PM Aaron Marcuse-Kubitza

backups/Makefile: Synchronization: $(remote): Updated path to backups

6888 12/17/2012 04:30 PM Aaron Marcuse-Kubitza

README.TXT: Data import: On jupiter: Updated path to backups

6887 12/17/2012 04:25 PM Aaron Marcuse-Kubitza

README.TXT: Installation: Added command to change to the directory of the checked out files

6886 12/17/2012 04:24 PM Aaron Marcuse-Kubitza

README.TXT: Installation: Added command to check out files from svn

6885 12/17/2012 03:51 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Added taxon_trait materialized view

6884 12/17/2012 02:43 PM Aaron Marcuse-Kubitza

mappings/Veg+-VegCore.csv: Sources: Removed redundant bien2_ prefix from bien2_staging subnamespace

6883 12/17/2012 02:21 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: trait: trait_unique: Removed value and units because there should only be one value of a trait for each taxonoccurrence

6882 12/17/2012 02:18 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Reattached trait to taxonoccurrence instead of taxonlabel, because the TraitObservation traits data is actually associated with a particular occurrence (plant observation complete with location, date, etc.), rather than just a taxon

6881 12/17/2012 01:31 PM Aaron Marcuse-Kubitza

Added inputs/bien2_traits/

6880 12/17/2012 01:29 PM Aaron Marcuse-Kubitza

mappings/VegCore-VegBIEN.csv: Mapped traits-related DwC terms measurementType, measurementValue, measurementUnit

6879 12/17/2012 12:34 PM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: Added trait table to ERD

6878 12/17/2012 12:25 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: trait: Added trait_unique unique index

6877 12/17/2012 12:19 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: trait: Added units field

6876 12/17/2012 12:14 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: trait: Renamed type to name because TraitObservation stores trait names rather than types

6875 12/17/2012 12:07 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: trait: Linked to taxonlabel instead of stemobservation, because TraitObservation's traits are taxon-level and stem-level traits currently go in named fields instead of a stem traits table

6874 12/17/2012 11:45 AM Aaron Marcuse-Kubitza

inputs/.TNRS/tnrs_*/map.csv: Remapped Source to OMIT so it won't match to the Source table

6873 12/17/2012 11:37 AM Aaron Marcuse-Kubitza

inputs/.TNRS/tnrs_other/map.csv: Updated for new VegCore terms, which include Source as a table name. This field will need to be remapped so it doesn't collide with the table name.

6872 12/17/2012 10:04 AM Aaron Marcuse-Kubitza

inputs/import.stats.xls: Updated import times

6871 12/17/2012 10:01 AM Aaron Marcuse-Kubitza

README.TXT: Data import: Added step to check that the source table contains entries for all inputs

6870 12/14/2012 01:01 PM Aaron Marcuse-Kubitza

Regenerated vegbien.ERD exports

6869 12/14/2012 12:52 PM Aaron Marcuse-Kubitza

make_analytical_db: Also populate owner_count

6868 12/14/2012 12:51 PM Aaron Marcuse-Kubitza

make_analytical_db: Generate provider_count before analytical_aggregate because it's much faster

6867 12/14/2012 12:50 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Added materialized view owner_count, generated from owner_count_view

6866 12/14/2012 12:21 PM Aaron Marcuse-Kubitza

make_analytical_db: Also populate provider_count

6865 12/14/2012 12:20 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Added materialized view provider_count, generated from provider_count_view

6864 12/14/2012 12:09 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Added provider_count_view for counts of occurrences per top-level provider

6863 12/14/2012 11:56 AM Aaron Marcuse-Kubitza

Regenerated mappings/VegCore.htm

6862 12/14/2012 11:52 AM Aaron Marcuse-Kubitza

Regenerated mappings/VegCore.htm

6861 12/14/2012 11:10 AM Aaron Marcuse-Kubitza

Regenerated mappings/VegCore.htm

6860 12/14/2012 10:39 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: provider_view: Sort NULL sourcetype last

6859 12/14/2012 10:36 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Added provider_view, which combines source and sourcename

6858 12/14/2012 10:31 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: sourcename: Gave public_ SELECT permissions

6857 12/14/2012 10:17 AM Aaron Marcuse-Kubitza

Regenerated mappings/VegCore.htm

6856 12/14/2012 10:15 AM Aaron Marcuse-Kubitza

README.TXT: Maintenance: VegCore data dictionary: Regenerate everything in mappings/ that changes when VegCore.htm changes (such as VegCore.tables.redmine) instead of just VegCore.csv

6855 12/14/2012 09:29 AM Aaron Marcuse-Kubitza

inputs/*/Source/map.csv without mappings: Added referenceType, etc. mappings. This also ensures that the source table entry for the datasource will be created before the herbaria list is imported, causing all top-level datasources to sort at the top of the source table.

6854 12/14/2012 09:02 AM Aaron Marcuse-Kubitza

schemas/vegbien.sql: Granted the public_ user read-only access to the contents of the source table

6853 12/14/2012 08:53 AM Aaron Marcuse-Kubitza

root Makefile: PostgreSQL: $(editPhppgadmin): Ignore errors if patch has already been applied

6852 12/14/2012 08:52 AM Aaron Marcuse-Kubitza

lib/phpPgAdmin.config.inc.php.diff: Remove context so segment matching would depend only on the $conf['extra_login_security'] line itself

6851 12/14/2012 08:29 AM Aaron Marcuse-Kubitza

mappings/Makefile: Added VegCore.tables.redmine, which contains the Redmine-formatted list of VegCore tables to paste into <https://projects.nceas.ucsb.edu/nceas/projects/bien/wiki/VegCore#Tables>

6850 12/14/2012 08:18 AM Aaron Marcuse-Kubitza

mappings/: Removed no longer used VegCore.redmine. VegCore.csv is now generated from the Redmine page instead of the other way around.

6849 12/14/2012 08:12 AM Aaron Marcuse-Kubitza

mappings/Makefile: Added VegCore.tables.csv, which contains all the tables in the VegCore data dictionary

6848 12/14/2012 06:59 AM Aaron Marcuse-Kubitza

README.TXT: Data import: backups/fix_perms: Run using sudo to also change permissions on files owned by the bien user, and to change the owner of files owned by you to the bien user

6847 12/14/2012 06:45 AM Aaron Marcuse-Kubitza

Regenerated mappings/VegCore.csv, which adds categories