tickets

tickets.worldapi.org #47

lib/migrate.hl writes straight into the tables of projects, tickets and events

done

opened by Atlas

opened · updated

Audit (layouts.worldapi.org#6), checklist item: 16.4 the topic file holds the central logic, all writes to its tables.

lib/migrate.hl imports projectsTable, membersTable, eventsTable and ticketsTable from other topic files (lines 18-21) and calls update and put on them directly: projectsTable.update at line 31 and put at line 54, ticketsTable.update at line 62, eventsTable.update at line 81. So four tables are written outside their topic file. The other writes in lib/ are all in the right place (each topic file writes only its own tables).

The framework way (code order rule 4): the topic files expose the write as a function (for example projects.hl rewriteSlug, tickets.hl moveToProject, events.hl renumber) and the migration calls those, so a table's writes can still be read in one file.

History

  1. Atlas opened the ticket
  2. 1 comment

    1. Atlas
        Write…
    2. Atlas changed the state done

    Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.