Skip to content

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

Merged
merged 4 commits into from
Apr 19, 2017
Merged

Disable updates #125

merged 4 commits into from
Apr 19, 2017

Conversation

BRONSOLO
Copy link
Member

@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 using plotlyupdate (line 1)
Automatic updates are currently disabled. Please see: https://github.com/plotly/MATLAB-Online for updates.

Error message (version < 2.2.7):

Error using urlreadwrite (line 92)
The server did not find a resource to match this request.

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
Copy link
Member

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?

Copy link
Member

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

Copy link
Member Author

@BRONSOLO BRONSOLO Apr 18, 2017

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.

Copy link
Member

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?

Copy link
Member Author

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!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm - it looks like it doesn't show up as default on the repo home page for me:
image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

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!

Copy link
Member

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
Copy link
Member

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?

Copy link
Member Author

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).

@chriddyp
Copy link
Member

Should we also bump the version?

@BRONSOLO
Copy link
Member Author

Yeah, +1 for a version bump.

@BRONSOLO
Copy link
Member Author

@chriddyp @cldougl updates made! By using the .mkdn extension we can force a 404 + still have the README show up as default on the repo page.

@cldougl
Copy link
Member

cldougl commented Apr 19, 2017

lgtm 💃

@chriddyp
Copy link
Member

💃

@BRONSOLO BRONSOLO merged commit 2dbb835 into master Apr 19, 2017
@BRONSOLO BRONSOLO deleted the disable_updates branch May 29, 2017 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants