Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

WIP: dependency management cleanup #358

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

cmc333333
Copy link
Member

This'll be a bigin and it's far from over but I wanted to push this up early. See #356 for context.

@cmc333333 cmc333333 force-pushed the 356-simplify-dependencies branch 3 times, most recently from 6d2223d to 773e642 Compare February 27, 2017 01:04
Previously we had been processing the SxS in the fetch_sxs command and storing
them separately. As it'll be helpful to reduce the number of dependency
models, move that transform into the sxs_layers command.
All of its functionality is now in the sxs_layers command.
We'll be shifting dependency management into the database, which means we need
to define a clearer schema for our element types.
@cmc333333 cmc333333 force-pushed the 356-simplify-dependencies branch 3 times, most recently from d6dba5c to 9471aab Compare March 8, 2017 04:33
cmc333333 and others added 4 commits March 7, 2017 23:43
We keep Dependency-related entities to maintain dependency resolution (though
they will eventually go away, too).
This is step two to moving dependency management into the database -- we now
have SourceFiles in use and CFRVersions being saved/retrieved. We need to
move all of the data from index.entrys into web.index.models, then we can
rework the dependency logic to rely solely on foreign keys.
For Python 2 compatibility.
We can just look for the presence of a CFRVersion.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 91.901% when pulling 9471aab on cmc333333:356-simplify-dependencies into 2bd31fb on eregs:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 91.901% when pulling 6c2b497 on cmc333333:356-simplify-dependencies into 2bd31fb on eregs:master.

This is another step towards replacing the DBEntry models with more
descriptive versions. Unlike previous commits, however, I'm not aiming
at backwards compatibility here -- it'll be much faster to just replace
the commands one at a time.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 92.1% when pulling 0edcf49 on cmc333333:356-simplify-dependencies into 2bd31fb on eregs:master.

In the process, replaces the dependency resolver with a model-checking
function to perform the same logic.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 92.154% when pulling 5c8aecf on cmc333333:356-simplify-dependencies into 2bd31fb on eregs:master.

As a result, rewrites the tests.
@coveralls
Copy link

coveralls commented Apr 17, 2017

Coverage Status

Coverage decreased (-0.04%) to 91.901% when pulling 8a6754d on cmc333333:356-simplify-dependencies into 2bd31fb on eregs:master.

As there will only ever be zero or one Document per Version (and vis versa),
codify that relationship in the migrations.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants