Permalink
Switch branches/tags
Nothing to show
Commits on Jul 16, 2018
Commits on Jul 14, 2018
  1. Restrict access to the maintenance app to localhost

    lovett committed Jul 14, 2018
    Treat the maintenance app as an internal resource and prevent it from
    being accessed outside of localhost, but also let this be overridden
    in the application config just in case.
Commits on Jul 13, 2018
  1. Upgrade pip packages

    lovett committed Jul 13, 2018
Commits on Jul 12, 2018
  1. [later] Add tag formatting note, vary button label

    lovett committed Jul 12, 2018
    Indicate that tags should be comma separated. Label the submit button
    as "Update" if the url has already been bookmarked.
  2. Handle speak cache cleanup from maintenance plugin

    lovett committed Jul 12, 2018
    Rather than a dedicated systemd service and timer which invokes find,
    accomplish the same result through application-internal means.
    
    With this approach there is still a systemd service and timer, but it
    only invokes the maintenance plugin and mimics the db maintenance service.
Commits on Jul 11, 2018
  1. [bounce] Make URL lookup more precise

    lovett committed Jul 11, 2018
    If a URL existed in the registry under more than one key, the wrong
    key would be used for group identification. By limiting the registry
    lookup to records associated with the bounce app, this is less likely.
Commits on Jul 9, 2018
  1. Use server startup rather than ready listener for bookmarks

    lovett committed Jul 9, 2018
    Make the initial check for unfetched bookmarks more similar to how
    log indexing works: as a publish call invoked from the server file
    rather than as a dependency callback within the bookmark plugin.
Commits on Jul 8, 2018
  1. [ip] Switch to ipify.org for external address check

    lovett committed Jul 8, 2018
    Its terms of use are very permissive and it claims longevity. Why not.
  2. Increase cache default lifespan from 1 hour to 1 week.

    lovett committed Jul 8, 2018
    Might as well keep things around longer to increase the value of the
    application.
Commits on Jul 6, 2018
  1. Upgrade pip packages

    lovett committed Jul 6, 2018
Commits on Jul 4, 2018
  1. Make expiration field a real in database schema

    lovett committed Jul 4, 2018
    Numeric comparisons weren't working as expected because the schema
    didn't specify a type for this field, causing sqlite to treat it
    as numeric and resulting in undue cache misses.
    
    Also improve the applog calls so that they are
    understandable. Previously, they were not.
  2. Remove trailing dot from cache prefix

    lovett committed Jul 4, 2018
    Applog entries are more readable without it.
Commits on Jul 2, 2018
  1. [visitors] Map cookie values to IP for more reliable display

    lovett committed Jul 2, 2018
    If the newest logline for an IP was for a URL that didn't include the
    cookie field, the cookie field of any subsequent loglines would not be
    shown. Prevent this by creating a mapping between IP addresses and
    cookie values, and using that as the basis for displaying the "Search
    for visits with this cookie" icon rather the logline itself.
  2. Invoke cache:purge as part of db maintenance

    lovett committed Jul 2, 2018
    The db_maintenance() method is no longer recursive because doing so
    makes it more awkward to do one off tasks such as calling
    cache:purge. The recursive approach also results in runtime
    calculations for each database but doesn't reference them by name,
    which is both verbose and unhelpful. Having the total runtime is
    nicer.
  3. Make cache prune argumentless

    lovett committed Jul 2, 2018
    Make the method in charge of purging expired records from the cache
    database into a public method so that it can be called from the
    maintenance plugin. Refactor it to be argument-less, because the
    scenario where you'd want to purge certain expired records but not
    others isn't relevant.
  4. Improve handling of no-results sparql queries

    lovett committed Jul 2, 2018
    Catch IndexError exceptions thrown when a query returns no
    results. Previously, only KeyError and TypeError exceptions were
    handled.
  5. Add optional persistence to the scheduler

    lovett committed Jul 2, 2018
    Jobs added to the scheduler can now be saved to disk via the cache
    plugin so that they survive server restarts or other downtime. At
    startup, the medley server will re-schedule any cached jobs.
Commits on Jul 1, 2018
  1. Typo correction

    lovett committed Jul 1, 2018
  2. Track requests from systemd timers via user agent

    lovett committed Jul 1, 2018
    Make it easier to identify curl requests coming from systemd by
    specifying a user agent.
Commits on Jun 29, 2018
Commits on Jun 28, 2018
  1. [maintenance] Add app for performing maintenance tasks

    lovett committed Jun 28, 2018
    Run the sqlite vacuum and analyze commands on all databases as part of
    a nightly maintenance regimen.
  2. Linting fixes

    lovett committed Jun 28, 2018
Commits on Jun 27, 2018
  1. Correct mis-parsed log lines at plugin startup

    lovett committed Jun 27, 2018
    The verify method of the logindex plugin creates a place to make
    repairs at the cost of increased application startup time.
Commits on Jun 26, 2018
  1. Account for the empty string during logfile extras parsing

    lovett committed Jun 26, 2018
    Treat empty strings the same way that "ZZ" and "?" values are treated.