#350  Staticman support for 1dev
Closed
Artur opened 3 years ago

Staticman has support for GitHub and GitLab. I guess it should be relatively easy to add support for 1dev for somebody knowledgable.

That would be last puzzle in having Pages like feature in 1dev with semi-dynamic comments on the website.

I think this could also encourage many people in looking at 1dev as a good alternative to GitHub and GitLab.

I am willing to pay for adding 1dev support to Staticman.

Artur commented 3 years ago

I guess you are busy but in case you can spare time I have setup bounty for the implementation: For anybody interested I have setup a bounty for the implementation: https://www.bountysource.com/issues/99526689-staticman-support-for-onedev-devops-platform

However, if you have time for some extra work, I would gladly pay you directly but if you have time I would ask you to do other, higher priority features, first.

Robin Shen commented 3 years ago

I plan to release 4.7.0 recently to analyze ANSI escape sequences to show build logs with color, together with some other bug fixes and usage improvements. After that I will check and prioritize my todos.

Robin Shen changed state to 'Closed' 3 years ago
Previous Value Current Value
Open
Closed
Robin Shen commented 3 years ago

OneDev side work has been done according to pull request #28

Artur changed state to 'Open' 3 years ago
Previous Value Current Value
Closed
Open
Artur commented 3 years ago

I am now testing the implementation and trying to get everything work.

During my tests I encountered the issue, which seems quite serious as it makes the whole system very difficult to use by average user.

I am referring to the issue described in this comment: OneDev Api requires project ID instead of project name

The biggest problem is that the project ID is nowhere visible on the 1dev website. At least I could not find it anywhere. Getting the project ID through API is very cumbersome.

So, for the simple fix, I suggest to add project ID information somewhere in the project description. Maybe on the project's settings page.

A better solution would be to allow to use project name in he API.

Robin Shen commented 3 years ago

All OneDev resources are operated via its internal id, which never changes. Project id can be checked via general setting:

2021-08-19_08-43-55.png

It can also be queries via restful api like below:

curl "https://code.onedev.io/api/projects?
query=%22Name%22+is+%22onedev-server%22&offset=0&count=1"
Artur commented 3 years ago

Thank you for responding the information.

This is really good that this information is available from web ui. Although you really have to know where to look. I was searching for the project ID for a while and did not spot this.

Command line option is also good but not for all users. As I am working on 1dev application for people who might not be comfortable with running stuff from command line. Therefore it is important to get this information from web ui.

Artur commented 3 years ago

This issue can be closed from my side.

Robin Shen changed state to 'Closed' 3 years ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Major
Assignee
Issue Votes (0)
Watchers (4)
Reference
onedev/server#350
Please wait...
Page is in error, reload to recover