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

cmd/bosun: shorten the action page URLs #1126

Merged
merged 1 commit into from
Jul 2, 2015
Merged

Conversation

maddyblue
Copy link
Contributor

This prevents proxies from refusing to relay because the HTTP header is
too large. This is done by reducing the length of the requesting page's
URL. But since bosun communicates data between controllers via the URL, we
now introduce a new key/value store to perform that exchange.

The other implementations for this communication aren't sibling-sibling,
they are parent-child. I didn't find a good way to do sibling-sibling
communication, and this is pretty clear, so I think it's a good choice.

fixes #1053

This prevents proxies from refusing to relay because the HTTP header is
too large. This is done by reducing the length of the requesting page's
URL. But since bosun communicates data between controllers via the URL, we
now introduce a new key/value store to perform that exchange.

The other implementations for this communication aren't sibling-sibling,
they are parent-child. I didn't find a good way to do sibling-sibling
communication, and this is pretty clear, so I think it's a good choice.

fixes #1053
keys = [search.key];
}
$location.search('key', null);
$scope.setKey('action-keys', keys);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to set $scope.keys in this block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope. The changing of $location.search above changes the URL which re-renders this controller at the end of the digest cycle.

Copy link
Contributor

Choose a reason for hiding this comment

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

gotcha. lgtm

captncraig added a commit that referenced this pull request Jul 2, 2015
cmd/bosun: shorten the action page URLs
@captncraig captncraig merged commit 1539e59 into master Jul 2, 2015
@captncraig captncraig deleted the short-action-referer branch July 2, 2015 18:23
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.

Actions will fail if you are performing them on many alerts
2 participants