Skip to content
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 resync remote repos #4113

Merged
merged 6 commits into from
Jun 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion readthedocs/builds/static/builds/js/detail.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions readthedocs/core/static/core/js/readthedocs-doc-embed.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion readthedocs/core/static/core/js/site.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion readthedocs/gold/static/gold/js/gold.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions readthedocs/projects/static-src/projects/js/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ function ProjectImportView(instance, config) {
.then(function (data) {
self.get_organizations();
self.get_accounts();
// This will trigger a new
// request to re-sync the repos
self.filter_by.valueHasMutated();
Copy link
Member Author

@stsewd stsewd May 22, 2018

Choose a reason for hiding this comment

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

I took this from https://stackoverflow.com/questions/16261689/force-knockout-to-mark-an-observable-as-changed-even-if-focus-is-still-in-the-f#16261761, still not sure if this is the correct way, but I tested it and works.

Copy link
Contributor

Choose a reason for hiding this comment

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

This change looks better.

})
.fail(function (error) {
self.error(error);
Expand Down
2 changes: 1 addition & 1 deletion readthedocs/projects/static/projects/js/import.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading