-
-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #754 and #865 #872
Fix #754 and #865 #872
Conversation
Checks the global storage path at constructor. Checks if the content of the setting file should be uploaded.
can you solve the conflicts so i can merge it ? |
Same fix merged for the PR #877. |
@shanalikhan have you added pragma support to other files? If yes I should add code for those files too. |
Yes, PR #854 has been merged in You can test it on your machine and improve the scenario for it as well if you think we can improve. |
@ioprotium Is it possible that the changes you introduced related to #754 are causing the extension to remove the |
@shanalikhan then I will add code for those files. We need to define integration test for the whole process, from the file changes detection to the upload. Do you have any ideas to accomplish it? @fgallardograzio It may causes to not upload the file in some scenario. Please wait to may next PR I will check this. |
Settings Sync use chokidar in the backend to detect the file change, what we can do it to see if they provide options to see the trail of file contents that are changed. |
@shanalikhan there is still work to do in order to add support to the other files. |
@ioprotium any idea when you can fix this two issues? |
@shanalikhan I'll try to fix them tomorrow. But basically, if you added support for pragmas in every file, we need a local copy of each file to check when they actually change. Besides that I think there is an issue: if the file is not uploaded is deleted from the gist? |
@ioprotium
Yes, I have experimented with this before and can confirm this. |
@arnohovhannisyan @shanalikhan well, then we should verify for each file. If one or more have changed, we need to upload every file. |
@shanalikhan I've solved the file conflict but project will still be broken. |
'file' field is wrong with static data.
Pragma util should only parse string content, checking each line for pragma statements.
As the extension gets the entire gists before commiting an upload, we can check each file of the gists against our local files in order to determine if the content has changed. There is no need to keel a local copy.
@shanalikhan my last commits fix the problem. I've noticed that the extension was already getting the gist before uploading the files. So I compare against the remote files. The entire gist will be updated if one or more local files have changed. Note:
To have in mind:
This PR is ready to be merge. |
@ioprotium
I was actually thinking of refactoring |
@arnohovhannisyan cool! |
@shanalikhan I'd try to become a more active collaborator, I think we can improve it taking into account all user's suggestion. This pragma util turns out to be an alternative to github versioning of the settings, since you only have to specify which settings should be applied to your dev environment. I'll take a loot at the open issues when I find time. |
@ioprotium Feel free to improve. I might release new version this week. |
Short description of what this resolves:
Fix #754 and #865
Only my commits as requested