-
Notifications
You must be signed in to change notification settings - Fork 167
Disable updates #125
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
Disable updates #125
Conversation
plotlyupdate.m relies on this file to determine the remote version
README*.md
Outdated
@@ -1,3 +1,8 @@ | |||
\* = `plotlyupdate.m` is currently disabled. Please download the latest version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the filename changed as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe instead of starting with this out of the bat, we can include a Install
section in this readme and mention that plotlyupdate
is disabled parenthetically? Then we can also link to our getting started at plot.ly/matlab/getting-started
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah - that's intentional so that old versions of the wrapper 404 on update. It's really the only way to shutoff the update. We could leave it as is and just let the old wrappers fail to update when they hit the error described in #124, but this way is more intentional/cleaner.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see. Will README*.md still show up as the readme in the github repo? Or can we rename it to something else that GitHub will recognize?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will show up as README*.md
-- we could def rename it to something else though!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sorry I see what you're saying now. Right. I'll investigate!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add a note on the matlab getting started doc page mentioning that plotlyupdate is temporarily disabled as well
fprintf('***********************************************\n\n'); | ||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot about this function. So epic!
Just curious, what else is needed to fix this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically we now need to handle updating the Matlab-api and Matlab-online versions of the wrapper. So we need to check if the user downloaded the latest version (with the name change) and handle updating that one appropriately. I think going forward we should modify the update script to only update the version of the wrapper located in the MATLAB toolbox (put there after running plotlysetup).
Should we also bump the version? |
Yeah, +1 for a version bump. |
lgtm 💃 |
💃 |
@chriddyp / @cldougl
plotlyupdate.m
is currently broken as a result of the MATLAB-api ---> MATLAB-Online repo name change. The fix is non-trivial and I would like to add more testing to this function in general. This PR disables the automatic updates for the time being. When a user attempts to update, it will now fail with the following error messages. Thoughts?Error message (version >= 2.2.7):
Error message (version < 2.2.7):