Permalink
Commits on Nov 15, 2013
  1. 58810758 Refactor search reference association

    saulius committed Nov 15, 2013
    Uses polymorphic associaton instead of having separate foreign key
    fields for each record
Commits on Nov 12, 2013
Commits on Nov 11, 2013
  1. Add A-Z index

    saulius committed Nov 11, 2013
    Reuses common SearchReferencesController (renamed to
    SearchReferencesBaseController) to return list of search
    references/synonyms.
    
    Does no pagination, but requires letter to be passed.
  2. Add Commodity change serializer

    saulius committed Nov 11, 2013
    On dev VM it used goods_nomenclature partial to render this, on preview
    it requires commodity. Checking if this helps.
  3. Merge pull request #124 from alphagov/59551288-chief-excise-measure-t…

    matthewford committed Nov 11, 2013
    …ype-fix
    
    CHIEF Excise measure type fix
  4. Merge pull request #126 from alphagov/60321380-expose-section-note-wi…

    matthewford committed Nov 11, 2013
    …th-chapter
    
    Expose Section note with chapter data
  5. Merge pull request #125 from alphagov/58808492-update-footnote-04003-…

    matthewford committed Nov 11, 2013
    …details
    
    Update description of national footnote 04003
  6. Merge pull request #123 from alphagov/60242196-fix-measure-change-ser…

    matthewford committed Nov 11, 2013
    …ialization
    
    Fix Measure change serialization
Commits on Nov 8, 2013
Commits on Nov 7, 2013
  1. Add data migration to fix national measures

    saulius committed Nov 7, 2013
    ..With tty codes 570 and 551
  2. Adjust national measure creation

    saulius committed Nov 7, 2013
    For Excise measure with tty codes 570 and 551 we should create a measure
    with rate of 0, measurement unit Litres and monetary unit GBP.
  3. Add TradeTariffBackend::NumberFormatter

    saulius committed Nov 7, 2013
    Helps format duty expression amounts. Cases:
    
    * If we have 0.3435 we want this exact number => 0.3435
    * If we have 0.34528 we want it rounded to 4 precision points => 0.3453
    * If we have 0.23 we want to leave it as it is => 0.23
    * If we have 0.2 we want add single leading zero => 0.20
    * If we have 1 we want to add two leading zeros => 1.00
  4. Fix Measure change serialization

    saulius committed Nov 7, 2013
    As in commodities#show request Measure should expose the following
    structure:
    
    {
      measure_type: {
        id: '',
        description: ''
      }
    }
    
    Instead of having measure_type_description key.
    
    Fixed/enhanced a few specs as well.
Commits on Nov 6, 2013
  1. Merge pull request #122 from alphagov/36718669-public-api-refactor

    matthewford committed Nov 6, 2013
    Refactor API before public launch
  2. Merge pull request #121 from alphagov/fix-elasticsearch-indexing

    jabley committed Nov 6, 2013
    Tire models are paginateable
Commits on Oct 29, 2013
  1. Refactor API before public launch

    saulius committed Oct 24, 2013
    * moves formatting logic from frontend app to backend
    * hides TARIC/CHIEF specific entities and names in the API.
    * improves spec coverage
    * contains various enhancements and spec fixes
    
    Updates rabl because it added support for partial local variables
    Updates therubyracer to avoid gem installation errors, same was done in
    static
Commits on Oct 28, 2013
  1. Make Tire models are paginateable

    saulius committed Oct 28, 2013
    Sequel 4.0.0 moved Model.paginate to Model.dataset.paginated. No warning
    was raised about deprecation?
Commits on Oct 17, 2013
  1. Rework TariffSynchronizer update fetching

    saulius committed Oct 17, 2013
    Synchronizer used to stop checking for updates for the day after it
    found its first CHIEF/Taric match. After recent update process outage in
    production we noticed that TARIC updates may appear twice at different
    times of day. This update keeps continuously checking for TARIC and
    CHIEF updates throughout the day.
  2. Meaningful exceptions when TARIC record is not found

    saulius committed Oct 17, 2013
    Will say that record was not found instead of:
    "undefined method `set' for nil:NilClass`" which is a consequence of
    record not being found
  3. List queries in code tag

    saulius committed Oct 17, 2013
    Easier to read in monospace
Commits on Oct 16, 2013
  1. Merge pull request #119 from alphagov/import-with-master-db

    jabley committed Oct 16, 2013
    Make imports play nicely with slaves
  2. Make imports play nicely with slaves

    jabley committed Oct 16, 2013
    When we tried to add read to slaves recently, importing failed. This
    revisits that piece of work.
Commits on Oct 14, 2013
  1. Merge pull request #117 from alphagov/upgrade-sequel

    jabley committed Oct 14, 2013
    Track gem updates
  2. Track gem updates

    jabley committed Oct 14, 2013
    Reading from slave database not working yet, so update all the things
    first.
  3. Merge pull request #116 from alphagov/58791864-use-bearer-tokens

    matthewford committed Oct 14, 2013
    Use bearer token strategy for cross app communication
  4. Merge pull request #115 from alphagov/fix-task-call

    matthewford committed Oct 14, 2013
    Fix task call for importing search synonyms