Skip to content

Conversation

@hellcp-work
Copy link
Contributor

Displaying a reduced view of the packages coming from the remote scm
Screenshot From 2025-08-15 10-19-37

@github-actions github-actions bot added the Frontend Things related to the OBS RoR app label Aug 15, 2025
@hennevogel hennevogel added the review-app Apply this label if you want a review app started label Aug 15, 2025
@obs-bot
Copy link
Collaborator

obs-bot commented Aug 15, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

@hellcp-work hellcp-work force-pushed the scmsync-package branch 4 times, most recently from 7966254 to caab5fe Compare August 15, 2025 11:52
@adrianschroeter
Copy link
Member

adrianschroeter commented Aug 15, 2025

could you hide this version of the sources by default?

These are not the sources which are processed when rpmbuild runs and neither what is maintained in git.

Esp. when we start now using subdirectories it willl lead to confusion... so, maybe just collapsing it and show it only on request (mouse click).

Also, the scmsync url itself seems not to be displayed. The showing URL is the project url from tag, right?

@hellcp-work
Copy link
Contributor Author

could you hide this version of the sources by default?

These are not the sources which are processed when rpmbuild runs and neither what is maintained in git.

Esp. when we start now using subdirectories it willl lead to confusion... so, maybe just collapsing it and show it only on request (mouse click).

Doable

Also, the scmsync url itself seems not to be displayed. The showing URL is the project url from tag, right?

It is, both in the project's package list and also in the top right (Developed at SCM link)

@adrianschroeter
Copy link
Member

| | Also, the scmsync url itself seems not to be displayed. The showing URL is the project url from tag, right?
| It is, both in the project's package list and also in the top right (Developed at SCM link)

I see, maybe we can have that link more prominent by default. For example showing this one instead of the sources by default.

@obs-bot
Copy link
Collaborator

obs-bot commented Aug 18, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

2 similar comments
@obs-bot
Copy link
Collaborator

obs-bot commented Aug 18, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

@obs-bot
Copy link
Collaborator

obs-bot commented Aug 18, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

@obs-bot
Copy link
Collaborator

obs-bot commented Aug 19, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

7 similar comments
@obs-bot
Copy link
Collaborator

obs-bot commented Aug 20, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

@obs-bot
Copy link
Collaborator

obs-bot commented Aug 20, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

@obs-bot
Copy link
Collaborator

obs-bot commented Aug 20, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

@obs-bot
Copy link
Collaborator

obs-bot commented Aug 20, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

@obs-bot
Copy link
Collaborator

obs-bot commented Aug 20, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

@obs-bot
Copy link
Collaborator

obs-bot commented Aug 20, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

@obs-bot
Copy link
Collaborator

obs-bot commented Aug 21, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

@obs-bot
Copy link
Collaborator

obs-bot commented Aug 21, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

@hellcp-work hellcp-work force-pushed the scmsync-package branch 4 times, most recently from 09a5f37 to 0437cb8 Compare August 22, 2025 10:11
@package = Package.get_by_project_and_name(@project.name, @package_name, follow_multibuild: true)
@package = Package.get_by_project_and_name(@project.name, @package_name,
follow_multibuild: true,
follow_project_scmsync_links: Flipper.enabled?(:scmsync, User.session))
Copy link
Member

Choose a reason for hiding this comment

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

This will expose readonly packages to all controllers that use this before action. I don't think this is a good idea.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added an scmsync specific method now

Copy link
Member

Choose a reason for hiding this comment

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

All this checking about Flipper.enabled?(:scmsync, User.session) getting a bit out of hand by now. Can you simplify this?

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 did for the check_scmsync action

Copy link
Member

Choose a reason for hiding this comment

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

couldn't you normalize this between remote project and scmsync anyway?
What should we keep the regressions for remote projects and deal with different workarounds there?

(Technical, the only difference between an scmsync and a remote package on api level is just the permission handling for service run and lock. Everything else should be identical, including access to build states, log files and the rest of the commands).

There are multiple pull requests from me open fixing these regressions and come with test cases demonstarting the issues...

@hramrach
Copy link

hramrach commented Sep 3, 2025

It is, both in the project's package list and also in the top right (Developed at SCM link)

That link is bogus - see #18062

@obs-bot
Copy link
Collaborator

obs-bot commented Sep 16, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

@obs-bot
Copy link
Collaborator

obs-bot commented Sep 23, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

1 similar comment
@obs-bot
Copy link
Collaborator

obs-bot commented Sep 23, 2025

Review app will appear here: http://obs-reviewlab.opensuse.org/hellcp-work-scmsync-package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend Things related to the OBS RoR app review-app Apply this label if you want a review app started

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants