Repository navigation
Relationship not getting store fix - #79
Conversation
+ fixed some stuff in the fileparser, regarding reading local files
Additionally, we should NOT create Aritsts!
|
|
||
| }) | ||
| .then(newEntity => { | ||
| return artist.setEntity(newEntity).then(() => newEntity); |
There was a problem hiding this comment.
Maybe we should NOT set that here? @ansjin what do you think?
The artist.setEntity(...) stuff.
| let entities = context.models.entities; | ||
| let eventJSON = eventEntityJSON.content; | ||
| return artists.findOrCreate({ // TODO: change to findOne | ||
| return artists.find({ |
There was a problem hiding this comment.
Reason for null-artists, Before merging, please check this case as well!
| // TODO: remove the limit | ||
| context.sequelize.query( | ||
| 'SELECT * from (SELECT blob_url, COUNT(*) as count FROM (select * from websites limit 1000) w LEFT JOIN contains c ON w.id = c."websiteId" GROUP BY blob_url ORDER BY count DESC) a where a.count > 50;', | ||
| 'SELECT * from (SELECT blob_url, COUNT(*) as count FROM (select * from websites limit 100000 ) w LEFT JOIN contains c ON w.id = c."websiteId" GROUP BY blob_url ORDER BY count DESC) a where a.count > 5;', |
There was a problem hiding this comment.
- remove limit
- make threshold configurable and pass it into the query
| .then(newEntity => { | ||
| return entities.create({ | ||
| 'name': entityName, | ||
| 'artist_type': 'Composer' |
There was a problem hiding this comment.
Entity has no artist type, but artist has.
| }); | ||
| } | ||
|
|
||
| exports.writeEvents = function (eventEntityJSON) { |
There was a problem hiding this comment.
@ansjin I do not understand this method, can you check that again please?
Problems:
- The stuff i wrote in other comments
- In the last then, we collect all promises, but then ignore them?
- We should create a event, even if we have no corresponding artist or entity.
- We should not create artists!
- We should not create entities? Or should we? Makes no sense in my Opinion.
I think the best way would be to create relationshipEntities. Maybe.
We should check if entityName is undefined or null, before creating null-entries ;)
Where do we get the entityName? Does the algorithm already know the entity?
|
no merging until we test this! |
|
@anshul0708 @SANDR00 can we get this merged please, so we have it for our run? |
|
@kordianbruck you tagged here the other anshul :) |
|
@Henni Please approve this! |
|
@ansjin happens to me every time 😢 |
No description provided.