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: align tag update slug #923

Merged
merged 2 commits into from Apr 25, 2024
Merged

fix: align tag update slug #923

merged 2 commits into from Apr 25, 2024

Conversation

prithvidasgupta
Copy link
Contributor

fixes #888 and fixes the slugName typo

Comment on lines 848 to 849
slugName := strings.ReplaceAll(req.SlugName, " ", "-")
slugName = strings.ToLower(slugName)
Copy link
Member

Choose a reason for hiding this comment

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

Put the formatting code at the top. Because there is a check if the same as what has already existed before. tagInfo.SlugName == req.SlugName

//If the content is the same, ignore it
	if tagInfo.OriginalText == req.OriginalText &&
		tagInfo.DisplayName == req.DisplayName &&
		tagInfo.SlugName == req.SlugName {
		return nil
	}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved the check to the right place in new commit

@LinkinStars LinkinStars self-assigned this Apr 25, 2024
@LinkinStars LinkinStars added this to the v1.3.1 milestone Apr 25, 2024
@LinkinStars LinkinStars changed the base branch from main to dev April 25, 2024 03:49
@LinkinStars LinkinStars merged commit 4269a11 into apache:dev Apr 25, 2024
@LinkinStars
Copy link
Member

LGTM. Thank you for your contribution.

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.

Unable to attach a Particular tag to a question - it getting override to different TAG
2 participants