Package: cnx-db
Connexions Database LibraryView thedocumentationon the Read the Docs site.LicenseThis software is subject to the provisions of the GNU Affero General
Public License Version 3.0 (AGPL). See license.txt for details.
Copyright (c) 2016 Rice UniversityChange Log3.5.3Merge pull request #194 from openstax/933-remove-transform-migration
- pin lint dependencies to versions that passed in last build of master
- setuptools>=45 breaks python 2.7 build for travis. Setting different
installs for setuptools for python 2 and 3
- added pip install -upgrade pip to .travis.yml file in before_install step
- Removed 20170911201035_transform_cnxml_to_html.py from migrationsMerge pull request #193 from openstax/cnx-stack-compose
- Add script to create legacy user w/ passwd for dev purposes
- Accept explicit and multiple values for table unique key
- Attempt to not insert when a duplicate pkey is found
- Bump sequences to max pkey value to avoid conflictsRemove upload pypi step in Jenkinsfile (#192)3.5.2Add twine check on travis (#190)Separate db_tables function and fixture for reuse (#191)3.5.1Rebake only latest openstax books in transforms migration (#189)3.5.0Documentation for the database triggers (#188)Rebake books in cnxml-to-html transforms migration (#187)3.4.0Fix empty collated file associations in dump_book.py (#185)Pin docutils to 0.14 in requirements/lint.txt (#186)Repeat populate tree slug migrationAdd cache purging code to populate trees slug migrationUpdate setup.py to require cnx-common>=1.2.13.3.0Move ident-hash parsing functionality to cnx-common (#180)Purge varnish cache after transforms (#181)Add script/dump_book.py to dump/load a book from db (#183)SQL queries for xpath search (#182)3.2.0Add a column for the REX URL slug (#178)Include the slug value in tree_to_json results (#179)3.1.1Exclude tests in find_packages() in setup.py (#175)3.1.0Split transforms (cnxml->html,html->cnxml) code into a new package,
cnx-transforms. The cnx-transforms package is now a dependency
of this project.3.0.0Move ident hash code to cnx-db (#625)Adjust container setup (#173)Add replace_collxml function (#171)2.7.0various build-system infrastructure changes (yay Jenkins)functions for explicitly setting canonical for all pages in a book2.6.3collxml generator function fixes2.6.2more migration script bugfixes2.6.1bugfix in db migration script (need db superuser)2.6.0Jenkins CI framework and initial supportGenerate collexion.xml files for new (minor rev)
collections that do not have them.2.5.1bugfix in a db migration script - no production impact2.5.0Support for canonical book per page - uuid2.4.0Added columns to legacy persons table to hold authentication info2.3.4Fixup function ownership on production DBs (production and synced from there)2.3.3Move html abstract trigger to later eventmake schema restorable
(cf.https://bucardo.org/postgres_all_versions.html#version_9.3.22re: search_path settings)2.3.2Correct trigger to transform abstracts to html from cnxml.
Seehttps://github.com/Connexions/cnx-db/issues/1382.3.1Add trigger to transform abstracts to html from cnxml.
Seehttps://github.com/Connexions/cnx-db/issues/1382.3.0Add database indices and modify the fulltext trigger to set different
weights to tsvectors based on whether they are generated on titles, keywords
or text.2.2.1Add an index to dramatically speed up/contents/<book-id>@ver:<pageid>@ver2.2.0Add a SQL query to obtain the ‘head’ version of content. The head
is the last publication made for that content regardless of whether
it is in a publicly viewable state.2.1.0Adds fulltext search fixes and speedups.2.0.1Fix the documentation for Pyramid integration properties.Fix the HTML reference resolver for cases where the moduleid is found
in the resource filename.2.0.0Transition the following Pyramid integration properties:registry.enginesandregistry.tables. These are now moved torequest.get_db_engine()andrequest.db_tables.
This favors the recommended pattern of using request methods and attributes
for hooking into the current thread local variable space.1.6.1Fix shred_collxml code to insert thetrees.latestvalue.
The fix includes a migration to ensure alltrees.latestvalues are
set to true, which should be the casee for all legacy content.
Seehttps://github.com/Connexions/cnx-db/issues/120for issue details.1.6.0Pin to a specific version of sesssion_exec when testing.Allow the Google Analytics (GA) code column to stay the same type,
but contain multiple GA codes. Adjustments to queries make this
an array of GA codes based on space separated list of codes.Adjust the books containing this page query to:
- Provide a sorted list of authors and the detailed person info
- Provide the shortid1.5.1Remove theDB_NAMEenvironment variable from the container definition.
This appears to have become redundant with thePOSTGRES_DBvariable.Fix .dockerfiles/initdb.d/00_initdb.sh to look for*.sqland*.sql.gzfiles in the docker entrypoint directory rather than
the current working directory.1.5.0Simplify slim dump import into docker containerRename .dockerfiles/initdb.d/initdb.sh to 00_initdb.shDon’t run cnx-db init if*.sqlor*.sql.gzexistRemove .dockerfiles/initdb.d/load_database_dump.shSet POSTGRES_DB to the same as DB_NAMEAdd the baked and print-style columns to the module metadata query.1.4.0Massage testing fixtures to better facilitate testing in packages using
this package.Provide additional init and wipe fixtures scoped at the module level.Remove custom function for table name lookup. Replaced by sqlalchemy
Inspector methods.Add adb_tablespytest fixture that supplies sqlalchemy table objects.1.3.0Add a new baking state, known as ‘fallback’, that allows content
to remain in a success state even when the latest print-style
won’t work with the content.Fix the primary key on theprint_style_recipestable.Provide docs for using the Pyramid Web Framework with this package.Add a database tables definition to the pyramid integration.
This places atablesattribute on the registry.
The attribute contains sqlalchemy table definitions that are reflected
from the existing database schema.1.2.0Fix settings discovery to use the given settings value for ‘db.common.url’
when theDB_URLenvironment variable is undefined.Add a read-only database setting to allow for read-only database
connections. The setting is available through theDB_READONLY_URLenvironment variable.1.1.0Touchup the docstrings for database init funcs (#99)Add an integration point for the pyramid web framework (#98)Update documentation headers and contrib module api docs (#97)1.0.0Migrate transform triggers logic to this package from cnx-archive (#86)Ignore artifacts of running ci_test_migrations.shRun non-continous integration runs of ci_test_migration.sh quietlyFix docker-compose to use env vars0.12.0Change pg_dump to use $DB_URL in ci_test_migrationsChange dbmigrator commands to use $DB_URL in ci_test_migrationsUse $DB_URL in ci_test_migrations.shFix triggers test to use raw connection stringRemove all connection string uses in favor of URLMove to using a URL rather than connection stringAdd prepare function for scripting env preparationAdd a function to discover environment settingsa view of all most recent content, regardless of baked stateCorrect code coverage configuration (#94)Ignore linting of build and dist directories (#89)Wrap lines in docs/changes.rst (#90)0.11.0In book search to provide query_type parameterization for AND vs OR queries
(#87)Fix number of migrations to rollback in ci_test_migrations.shget only the highest version for each book a page is in, return full
ident_hash, as well as authors. Put same-as-page-authors first, since this is
likely to be the orginal book the page was published in.  Returned as list of
hashes in page content-extrasCorrect project testing requirements to also use main.txt (#85)Fix update latest trigger not adding new modulesmake in book search OR terms, rather than AND themdo not use timestamps to determine latest content (#75)Add migration for print_style_recipes (#80)Make lexeme removal migration idempotent (#82)Fix print_style_recipe trigger definition to align with the migration (#81)Provide book full text search (#78)0.10.4Revert changes to triggers for derived contentRemove fix for derived_book_ruleset sql function by returning
a value (#67)Remove addition of trigger for duplicating rulset.css for derived
copies (#56)0.10.3Fix to ignore stateid when copying subcollections to avoid adding
subcollections to the post-publication queue (#73)0.10.2Use postgres super user in migrations that require it (#71)Correct errors in subcol uuid migration associated with an empty batch (#70)0.10.1Fix in-collated-book page search sql query (#68)Add a matching migration for the double-trigger-when-rebaking fix (#69)Fix derived_book_ruleset sql function by returning a value (#67 #66)0.10.0Add query to get latest version of the content (#64)Use super user to replace plpythonu function in migration (#62)Add migration to transform cnxml->html (#59)Add delete cascade and indexes for foreign keys (#58)Add data migration to update index.cnxml (#61)Add trigger for duplicating rulset.css for derived copies (#56)Add subcollection uuid data migration (#54)Fix minor versions and current_modules view (#49)Add xpath queries (#40)0.9.0Add AS_VENV_IMPORTABLE env variable to the pytest db_init fixture.Fix load session_exec.so in init_venv before using it.Fix order of dependency installation to account for the current circular
dependence with cnx-archive.Fix quoting within the container’s initdb scriptAdd docker entrypoint script to load database dump.Fix Dockerfile initdb.d COPY command.Fix requirements filename change in DockerfileFix rebake trigger to do nothing when the content is already in a bakable
state.Lock latest_modules when running update_latest where two or more inserts may
happen at the same time.Fix update_latest trigger to account for multiple minor versions where one or
more may have failed during baking.Add sql queries for getting books containing a page.0.8.0Add tables and triggers to store recipes associated with print-styles.0.7.0Add association table for celery results to documents.0.6.0Share this project’s pytest fixtures for use in dependent projects.Create the cnxdb.contrib package.Fix to exclude subcollections from the search query.0.5.4Fix to only create the moduletags index when it does not exist.0.5.3Add an index for moduletags to improve search.0.5.2Fix to speedup in-book search for baked content.0.5.1Include a migration for the post_publication channel payload change.0.5.0Add a payload to the post_publication channel notification.Fix tests by explicitly including cnx-archive.Fix tests to only run trigger tests within Python 2.7.0.4.0Add a Make recipe for building and serving this project/component.Correct styling, documentation and test running code.Add the Make interface for common developer tasks.Install versioneer for version management via git.Add SQL function and trigger to rebake on baking recipe insert or update.Update SQL manifest to add subcollection uuid SQL functions.0.3.0Adjust SQL functions declarations to idempotent declarations.Add SQL functions and indexes for the content ident-hash.0.2.7Fix a relative path within the sub-collection uuid migration.0.2.6Update SQL to include sub-collection uuid schema changes from cnx-archive.0.2.5Make the project db-migrator aware.0.2.4Update SQL to include collated schema changes from cnx-archive.0.2.3Remove localhost venv initialization constraint.0.2.2Update SQL to account for changes in the cnx-publishing project.0.2.1Update SQL to account for changes in the cnx-publishing
and cnx-archive projects.Fix to include schema files in the distribution.0.2.0Add a commandline interface for initializing the database.Add a commandline interface for initializing or re-initializing
the virtualenv within the database.0.1.1Update SQL to account for changes made in the cnx-publishing
and cnx-archive projects.0.1.0Add functions for initializing the database.Merge database schemata from the cnx-publishing and cnx-archive projects.