Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mrgum
Copy link
Contributor

@mrgum mrgum commented Nov 4, 2025

these changes make the register url more flexible, tests included this time

@mrgum
Copy link
Contributor Author

mrgum commented Nov 4, 2025

p.s. there is a typo in a line unrelated to my change in ood-portal-generator line 198

    it 'genereates the correct debian portal with auth' do

<%- end -%>

<%- if @register_uri && @register_root %>
<%- if @register_uri && @register_root && @register_method && @register_path %>
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm surprised this has backward compatibility, but then again, maybe there were no test cases for the same.

It's imperative that we keep compatibility here so I'll have to pull this down and maybe write a test or two for it in a separate PR to be sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, always good to test it. I guess those do no need to be in that test at all, they both have defaults set in the view so will always be set when register_root is set.

I put them there as I didn't like using them as non-optionals in the erb template without testing they were set in the block that has them (and wrapping them all in if's made the code messy like it was in the previous PR)

the view has....
@register_path = opts.fetch(:register_path, @register_root)
@register_method = opts.fetch(:register_method, 'Alias')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added a test for the default register settings

@johrstrom
Copy link
Contributor

I think this is fine, I see how it's backward compatible still. Though I would like to get @treydock's opinion.

@johrstrom johrstrom requested a review from treydock November 5, 2025 17:14
@treydock
Copy link
Contributor

treydock commented Nov 6, 2025

@johrstrom Looks fine to me.

@johrstrom johrstrom merged commit 3b3cee7 into OSC:master Nov 7, 2025
21 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting Review to Merged/Closed in PR Review Pipeline Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Merged/Closed

Development

Successfully merging this pull request may close these issues.

4 participants