Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Danibishop/longitude rework #32

Merged
merged 52 commits into from
Feb 6, 2019
Merged

Danibishop/longitude rework #32

merged 52 commits into from
Feb 6, 2019

Commits on Jan 23, 2019

  1. Scaffold as packagestarting in version 0.3.0

    Dani Ramirez committed Jan 23, 2019
    Configuration menu
    Copy the full SHA
    738b144 View commit details
    Browse the repository at this point in the history
  2. Scaffold structure including initial unit test structure + coverage c…

    …onfiguration.
    Dani Ramirez committed Jan 23, 2019
    Configuration menu
    Copy the full SHA
    8845ea5 View commit details
    Browse the repository at this point in the history
  3. Scaffold for carto data source including tests.

    Dani Ramirez committed Jan 23, 2019
    Configuration menu
    Copy the full SHA
    64073a7 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2019

  1. Added per-query configuration (+ default). Exception wrapping to hide…

    … the CARTO layer.
    Dani Ramirez committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    37f443a View commit details
    Browse the repository at this point in the history
  2. Basic example added to query Carto

    Dani Ramirez committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    44bf413 View commit details
    Browse the repository at this point in the history
  3. 100% coverage for Carto data source. Common configuration for on prem…

    …ise and regular instances.
    Dani Ramirez committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    fb53a06 View commit details
    Browse the repository at this point in the history
  4. Added class to wrap query responses, regardless of the database speci…

    …fic response. Basic preview of returned values as table.
    Dani Ramirez committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    7be594a View commit details
    Browse the repository at this point in the history
  5. Updated doc

    Dani Ramirez committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    2c74c55 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2019

  1. Transparent cache logic inserted in base data source logic. README no…

    …w has the roadmap checklist.
    Dani Ramirez committed Jan 25, 2019
    Configuration menu
    Copy the full SHA
    8fb5849 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2019

  1. Basic RAM cache implementation. Source code folder structure rework t…

    …o separate samples.
    Dani Ramirez committed Jan 28, 2019
    Configuration menu
    Copy the full SHA
    ed0023b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    63ba516 View commit details
    Browse the repository at this point in the history
  3. Added flush to caches

    Dani Ramirez committed Jan 28, 2019
    Configuration menu
    Copy the full SHA
    2458d02 View commit details
    Browse the repository at this point in the history
  4. Picke as default cache serializer.

    Dani Ramirez committed Jan 28, 2019
    Configuration menu
    Copy the full SHA
    000e826 View commit details
    Browse the repository at this point in the history
  5. Cache now stores normalized payloads only

    Dani Ramirez committed Jan 28, 2019
    Configuration menu
    Copy the full SHA
    3fff406 View commit details
    Browse the repository at this point in the history
  6. Updated tests

    Dani Ramirez committed Jan 28, 2019
    Configuration menu
    Copy the full SHA
    dcd2f10 View commit details
    Browse the repository at this point in the history
  7. Added tests for Redis cache and RAM cache. Improved total coverage up…

    … to 95%.
    Dani Ramirez committed Jan 28, 2019
    Configuration menu
    Copy the full SHA
    08aa397 View commit details
    Browse the repository at this point in the history
  8. Cache configuration wrapped in class instead of dictionary (only for …

    …Redis for now). Password field added to Redis configuration, including associated error messages.
    Dani Ramirez committed Jan 28, 2019
    Configuration menu
    Copy the full SHA
    fec1359 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2019

  1. Initial scaffold for postgres data source

    Dani Ramirez committed Jan 29, 2019
    Configuration menu
    Copy the full SHA
    1d9c0fe View commit details
    Browse the repository at this point in the history
  2. Requied Python version updated to 3.7. Reference to shared google doc…

    … with roadmap removed.
    Dani Ramirez committed Jan 29, 2019
    Configuration menu
    Copy the full SHA
    20ece33 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'danibishop/longitude-rework' into danibishop/postgres-i…

    …nterface
    Dani Ramirez committed Jan 29, 2019
    Configuration menu
    Copy the full SHA
    f3a7005 View commit details
    Browse the repository at this point in the history
  4. Basic Postgres sample running

    Dani Ramirez committed Jan 29, 2019
    Configuration menu
    Copy the full SHA
    2ecf601 View commit details
    Browse the repository at this point in the history
  5. psycopg2 package removed in favour of psycopg2-binary distribution. F…

    …ixed tests.
    Dani Ramirez committed Jan 29, 2019
    Configuration menu
    Copy the full SHA
    fe2078c View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2019

  1. Write query comprobation removed. Closes #33. Use of cache is now con…

    …figurable in a per-query basis using a bool parameter in the query() method.
    Dani Ramirez committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    a50754f View commit details
    Browse the repository at this point in the history
  2. Previews for query response removed.

    Dani Ramirez committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    edff45b View commit details
    Browse the repository at this point in the history
  3. Configuration logic extracted to simple class. Now it is common for d…

    …ata sources and cache classes.
    Dani Ramirez committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    07054fc View commit details
    Browse the repository at this point in the history
  4. Cache can be safely disabled temporarily using the DisableCache conte…

    …xt manager. Basic profiling times in the postgres data source. Added 'needs_commit' parameter to query method to avoid default committing.
    Dani Ramirez committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    2dd8546 View commit details
    Browse the repository at this point in the history
  5. Common response class extracted to its own module. Rows data is now s…

    …tored including field name, following the CARTO style. Closes #35
    Dani Ramirez committed Jan 30, 2019
    Configuration menu
    Copy the full SHA
    60d4680 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2019

  1. Configuration menu
    Copy the full SHA
    4211956 View commit details
    Browse the repository at this point in the history
  2. Updated pytest dependency. Added some pytest plugins.

    Dani Ramirez committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    e449a3c View commit details
    Browse the repository at this point in the history
  3. Fix. Queries were being passed already formatted to the specific sub-…

    …classes. This avoided each database connector to deal with parametrized queries. This had implications on how the cache keys were being generated. Now, keys are generated with the concatenation of the query template and the parameters.
    Dani Ramirez committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    26e214f View commit details
    Browse the repository at this point in the history
  4. Fix. Queries were being passed already formatted to the specific sub-…

    …classes. This avoided each database connector to deal with parametrized queries. This had implications on how the cache keys were being generated. Now, keys are generated with the concatenation of the query template and the parameters.
    Dani Ramirez committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    5a2b610 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'danibishop/longitude-rework' into danibishop/sqlalchemy…

    …-data-source
    Dani Ramirez committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    e1d7773 View commit details
    Browse the repository at this point in the history
  6. Added SQLAlchemy and dependencies updated.

    Dani Ramirez committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    86a159b View commit details
    Browse the repository at this point in the history
  7. get_config() now returns default and custom configurations merged if …

    …no key is provided. Create table from model in SQLAlchemy seems to work (wrapped in data source object)
    Dani Ramirez committed Jan 31, 2019
    Configuration menu
    Copy the full SHA
    d295ad1 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2019

  1. Merge branch 'danibishop/longitude-rework' of github.com:GeographicaG…

    …S/Longitude into danibishop/longitude-rework
    Dani Ramirez committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    8aa0034 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'danibishop/distribution-rework' into danibishop/sqlalch…

    …emy-data-source
    Dani Ramirez committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    415772f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    120336e View commit details
    Browse the repository at this point in the history
  4. Sample use of SQL Alchemy using Expression Language

    Dani Ramirez committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    6feda08 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    333e275 View commit details
    Browse the repository at this point in the history
  6. SQLAlchemy data source full sample.

    Dani Ramirez committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    10039b0 View commit details
    Browse the repository at this point in the history
  7. Configuration object class created.

    Dani Ramirez committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    a17482e View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2019

  1. Example for configuration file using a Carto and Postgres data source…

    …s combined
    Dani Ramirez committed Feb 2, 2019
    Configuration menu
    Copy the full SHA
    7af7f58 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'danibishop/longitude-rework' of github.com:GeographicaG…

    …S/Longitude into danibishop/longitude-rework
    Dani Ramirez committed Feb 2, 2019
    Configuration menu
    Copy the full SHA
    4a36a9a View commit details
    Browse the repository at this point in the history
  3. Expiration time added to cache interface

    Dani Ramirez committed Feb 2, 2019
    Configuration menu
    Copy the full SHA
    746788b View commit details
    Browse the repository at this point in the history
  4. Expanded explanation about issues when rendering binded parameters to…

    … carto queries.
    Dani Ramirez committed Feb 2, 2019
    Configuration menu
    Copy the full SHA
    ba494a3 View commit details
    Browse the repository at this point in the history
  5. Source folder renamed as longitude.

    Dani Ramirez committed Feb 2, 2019
    Configuration menu
    Copy the full SHA
    78bc949 View commit details
    Browse the repository at this point in the history
  6. Build + development environment switched to Poetry

    Dani Ramirez committed Feb 2, 2019
    Configuration menu
    Copy the full SHA
    6566bb2 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2019

  1. Python requirement lowered to 3.6 or bigger instead of 3.7. Fixed cov…

    …erage script for longitude path.
    Dani Ramirez committed Feb 4, 2019
    Configuration menu
    Copy the full SHA
    1c43064 View commit details
    Browse the repository at this point in the history
  2. First try with Jenkins + Poetry

    Dani Ramirez committed Feb 4, 2019
    Configuration menu
    Copy the full SHA
    74773c5 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2019

  1. Updated data source base including some shortcut query methods and da…

    …taframe read/write abstract methods
    Dani Ramirez committed Feb 5, 2019
    Configuration menu
    Copy the full SHA
    ca0d967 View commit details
    Browse the repository at this point in the history
  2. Updated dependencies

    Dani Ramirez committed Feb 5, 2019
    Configuration menu
    Copy the full SHA
    11029de View commit details
    Browse the repository at this point in the history
  3. Config reworked as in ch31846.

    EnvironmentConfiguration is now a domain class that exposes a single get(key) method.
    It will parse environment variables in the form LONGITUDE__PARENT_OBJECT__CHILD_OBJECT__VALUE=42 as {'parent_object': {'child_object': {'value': 42 } }
    It also allows to recover the values using nested keys ('.' is the joiner): Config.get('parent_object.child_object.value') returns 42 (as integer).
    Also, if a value can be parsed as integer, it will be parsed.
    Dani Ramirez committed Feb 5, 2019
    Configuration menu
    Copy the full SHA
    ad0feb7 View commit details
    Browse the repository at this point in the history