Closed rreitmann closed 6 years ago
@rreitmann I like to discuss a last question for this topic: It is about the case if a question has only one image. Do we use the carousel always to have a similar style or do we disable the carousel?
Ng-Change on Ng-Select is an problem. Hacky workaround is linked under the issue: https://github.com/angular/material/issues/1576
Mongoskript for searching just question files:
db.getCollection('fs.files').find({"filename": { $regex: /questions/ }})
Mongoskript for deleting just question files:
db['fs.files'].remove({"filename": { $regex: /questions/ }});
We can select all old image files by executing:
db.fs.files.find({"filename": { $regex: /^\/questions/ }})
Deleting files can be done with:
db.fs.files.remove({"filename": { $regex: /^\/questions/ }})
Afterwards the chunks are still present but can be cleaned up with:
function removeChunkIfNoOwner(chunk){
//Look for the parent file
var parentCount = db.fs.files.find({'_id' : chunk.files_id}).count();
if (parentCount === 0 ){
db.fs.chunks.remove({'_id': chunk._id});
print("Removing chunk " + chunk._id);
}
}
db.fs.chunks.find().forEach(removeChunkIfNoOwner);
@dkatzberg Here are my remarks:
/* Get image file dimensions*/
Upload.imageDimensions(file).then(function(dimensions){console.log(dimensions.width, dimensions.height);});
@rreitmann The resizing is a problem. We should talk about this on monday. @rreitmann The padding is from the md-card, not from the carousel. If I remove the padding, I remove it from the card, not just the from the carousel. I know that I could add the padding to the other string elements, but we should talk about this on monday too.
We should discuss the first point on monday for need.
We need to implement the changes designed in #1414