-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Length of namespace is mis-calculated when creating new private namespace #5073
Comments
🤖 Hello @easyfold! 👋 I'm Dosu, an AI here to assist you with Apollo bugs and queries while we wait for a human maintainer. I can also guide you in contributing to the apollo repository. Remember, no issue is too big or too small for us to handle together! 😉 Let's get this bug squashed! 🐛 The issue you're experiencing with the namespace length being calculated as $scope.appendNamespacePrefix = true;
function shouldAppendNamespacePrefix() {
return $scope.appendNamespacePrefix;
} When creating a new namespace, the $scope.concatNamespace = function () {
if (!$scope.appBaseInfo) {
return '';
}
var appNamespaceName = $scope.appNamespace.name ? $scope.appNamespace.name : '';
if (shouldAppendNamespacePrefix()) {
return $scope.appBaseInfo.namespacePrefix + appNamespaceName;
}
return appNamespaceName;
}; So, even though the issue was supposed to be fixed in #2784, it appears to have been reverted in 109c98d, and the namespace length is still being calculated as The url: AppUtil.prefixPath() + '/apps/:appId/namespaces', Here, I hope this clarifies the issue. If you have any further questions, feel free to ask. Best regards, Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Thanks for reporting this issue. This is a bug introduced in 109c98d. |
Describe the bug
In v2.2.0, when creating new private namespace, namespace length is calculated as
prefix + namespace
. This bug should have be fixed in #2784, but it's reverted in 109c98dThe text was updated successfully, but these errors were encountered: