You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Situation:
When migrating project files project without a file were given Null value to the file history id. We expect this field not be Null. The caching method which should update the field fails to do it because it cannot find a file associated with the project id.
Solution
When no files are found when caching the latest files, put an empty array in the column and don't keep it Null.
"Make file_history_ids not nullable?" It was meant to be nullable and updated only on demand (first pull / get info) as whole migration would have been very heavy. So probably we maybe want to cache files ids if it is null as a fix.
"Make file_history_ids not nullable?" It was meant to be nullable and updated only on demand (first pull / get info) as whole migration would have been very heavy. So probably we maybe want to cache files ids if it is null as a fix.
Actually, I found out the latest project files are cached in this scenario.
That's why the problem is only in empty projects. The caching method finds no files to cache and keeps the column null.
Actually, I found out the latest project files are cached in this scenario.
That's why the problem is only in empty projects. The caching method finds no files to cache and keeps the column null.
If caching method finds no files then I guess it should set it to empty array rather that NULL which should be only used if that row has never been cached.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task: https://github.com/MerginMaps/server-private/issues/2558
Situation:
When migrating project files project without a file were given Null value to the file history id. We expect this field not be Null. The caching method which should update the field fails to do it because it cannot find a file associated with the project id.
Solution
When no files are found when caching the latest files, put an empty array in the column and don't keep it Null.
Bonus:
Fix flask cmd to create a project.