Skip to content

Remove deleted views #59

@lpatiny

Description

@lpatiny

It seems that currently the flavor-builder is not taking into account the '$delete' property.

For instance this view was deleted: https://www.cheminfo.org/couch/_utils/document.html?cheminfo-public/59dec54d14e5e206142256823efa2d1c

But it is still available at: https://www.cheminfo.org/flavor/cheminformatics/SMILES/Smiles/index.html even after deleting the whole build folder and running node bin/build.js --config=/usr/local/flavor-builder/config/www.cheminfo.org.json --forceUpdate

Not sure if the change should be at this level ?

flavor-builder/src/index.js

Lines 405 to 415 in ea3e2c5

// Remove deleted views
const savedIds = revisionById[flavorName]
? Object.keys(revisionById[flavorName])
: [];
for (let i = 0; i < savedIds.length; i++) {
if (!flavorIds[savedIds[i]]) {
hasDeleted = true;
delete revisionById[flavorName][savedIds[i]];
}
}

@stropitek could you help me on this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions