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

Milestones not feched from GitLab #666

Open
zoechi opened this issue May 17, 2024 · 2 comments
Open

Milestones not feched from GitLab #666

zoechi opened this issue May 17, 2024 · 2 comments
Labels
area: gitlab enhancement New feature or request

Comments

@zoechi
Copy link

zoechi commented May 17, 2024

I created 2 Milestones in a GitLab repository, but I can't assign them in magit-forge.
The provided selection list is empty when I use
M-x forge-topic-set-milestone or
when I open the issue and use C-c C-e on the Milestone attribute.
Entering the milestone names I know exist also only results in an error message (see below).

"Fetch all topics" didn't help as it did with labels.

The error when I enter the milestone name manually
cl-no-applicable-method: No applicable method: forge--set-topic-milestone, #s(#s(eieio--class forge-gitlab-repository nil (#s(eieio--class forge-repository nil (#s(eieio--class forge-object nil (#s(eieio--class closql-object nil nil [#s(cl-slot-descriptor closql-database nil t nil)] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data (closql-database 1)) (forge-object) ((:closql-database . closql-database)) [#s(cl-slot-descriptor closql-order-by nil t nil) #s(cl-slot-descriptor closql-foreign-key nil t nil) #s(cl-slot-descriptor closql-primary-key nil t nil) #s(cl-slot-descriptor closql-table nil t nil) #s(cl-slot-descriptor closql-class-suffix nil t nil) #s(cl-slot-descriptor closql-class-prefix nil t nil)] [nil nil nil nil nil nil] ...)) [#s(cl-slot-descriptor closql-database nil t nil)] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data (closql-database 1)) (forge-notification forge-post forge-repository) ((:closql-database . closql-database)) [#s(cl-slot-descriptor closql-class-prefix nil t nil) #s(cl-slot-descriptor closql-class-suffix nil t nil) #s(cl-slot-descriptor closql-table nil t nil) #s(cl-slot-descriptor closql-primary-key nil t nil) #s(cl-slot-descriptor closql-foreign-key nil t nil) #s(cl-slot-descriptor closql-order-by nil t nil)] [nil nil nil nil nil nil] ...)) [#s(cl-slot-descriptor closql-database nil t nil) #s(cl-slot-descriptor id nil t nil) #s(cl-slot-descriptor forge-id nil t nil) #s(cl-slot-descriptor forge nil t nil) #s(cl-slot-descriptor owner nil t nil) #s(cl-slot-descriptor name nil t nil) #s(cl-slot-descriptor apihost nil t nil) #s(cl-slot-descriptor githost nil t nil) #s(cl-slot-descriptor remote nil t nil) #s(cl-slot-descriptor condition :stub t nil) ...] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data (closql-database 1 id 2 forge-id 3 forge 4 owner 5 name 6 apihost 7 githost 8 remote 9 condition 10 ...)) (forge-gitlab-repository forge-github-repository forge-noapi-repository forge-unusedapi-repository) ((:closql-database . closql-database) (:id . id) (:forge-id . forge-id) (:forge . forge) (:owner . owner) (:name . name) (:apihost . apihost) (:githost . githost) (:remote . remote)) [#s(cl-slot-descriptor pullreq-refspec nil t nil) #s(cl-slot-descriptor create-pullreq-url-format nil t nil) #s(cl-slot-descriptor create-issue-url-format nil t nil) #s(cl-slot-descriptor remote-url-format nil t nil) #s(cl-slot-descriptor branch-url-format nil t nil) #s(cl-slot-descriptor commit-url-format nil t nil) #s(cl-slot-descriptor pullreq-post-url-format nil t nil) #s(cl-slot-descriptor pullreq-url-format nil t nil) #s(cl-slot-descriptor pullreqs-url-format nil t nil) #s(cl-slot-descriptor issue-post-url-format nil t nil) ...] [nil nil nil nil nil nil nil nil nil nil ...] ...)) [#s(cl-slot-descriptor closql-database nil t nil) #s(cl-slot-descriptor id nil t nil) #s(cl-slot-descriptor forge-id nil t nil) #s(cl-slot-descriptor forge nil t nil) #s(cl-slot-descriptor owner nil t nil) #s(cl-slot-descriptor name nil t nil) #s(cl-slot-descriptor apihost nil t nil) #s(cl-slot-descriptor githost nil t nil) #s(cl-slot-descriptor remote nil t nil) #s(cl-slot-descriptor condition :stub t nil) ...] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data (closql-database 1 id 2 forge-id 3 forge 4 owner 5 name 6 apihost 7 githost 8 remote 9 condition 10 ...)) nil ((:closql-database . closql-database) (:id . id) (:forge-id . forge-id) (:forge . forge) (:owner . owner) (:name . name) (:apihost . apihost) (:githost . githost) (:remote . remote)) [#s(cl-slot-descriptor closql-class-prefix "forge-" t nil) #s(cl-slot-descriptor closql-class-suffix "-repository" t nil) #s(cl-slot-descriptor closql-table 'repository t nil) #s(cl-slot-descriptor closql-primary-key 'id t nil) #s(cl-slot-descriptor closql-foreign-key nil t nil) #s(cl-slot-descriptor closql-order-by nil t nil) #s(cl-slot-descriptor issues-url-format "https://%h/%o/%n/issues" t nil) #s(cl-slot-descriptor issue-url-format "https://%h/%o/%n/issues/%i" t nil) #s(cl-slot-descriptor issue-post-url-format "https://%h/%o/%n/issues/%i#note_%I" t nil) #s(cl-slot-descriptor pullreqs-url-format "https://%h/%o/%n/merge_requests" t nil) ...] ["forge-" "-repository" repository id nil nil "https://%h/%o/%n/issues" "https://%h/%o/%n/issues/%i" "https://%h/%o/%n/issues/%i#note_%I" "https://%h/%o/%n/merge_requests" ...] ...) #s(forge-database #s(emacsql-sqlite-builtin-connection #<sqlite db=0xc242588 name=/home/myuser/.config/emacs/forge-database.sqlite> nil #<finalizer> "/home/myuser/.config/emacs/forge-database.sqlite")) "[redacted]" "51850150" "gitlab.com" "mygroup" "nix-config" "gitlab.com/api/v4" "gitlab.com" "origin" ...), #s(#s(eieio--class forge-issue nil (#s(eieio--class forge-topic nil (#s(eieio--class forge-post nil (#s(eieio--class forge-object nil (#s(eieio--class closql-object nil nil [#s(cl-slot-descriptor closql-database nil t nil)] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data (closql-database 1)) ... ... [#s(cl-slot-descriptor closql-order-by nil t nil) #s(cl-slot-descriptor closql-foreign-key nil t nil) #s(cl-slot-descriptor closql-primary-key nil t nil) #s(cl-slot-descriptor closql-table nil t nil) #s(cl-slot-descriptor closql-class-suffix nil t nil) #s(cl-slot-descriptor closql-class-prefix nil t nil)] [nil nil nil nil nil nil] ...)) [#s(cl-slot-descriptor closql-database nil t nil)] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data (closql-database 1)) (forge-notification forge-post forge-repository) ((:closql-database . closql-database)) [#s(cl-slot-descriptor closql-class-prefix nil t nil) #s(cl-slot-descriptor closql-class-suffix nil t nil) #s(cl-slot-descriptor closql-table nil t nil) #s(cl-slot-descriptor closql-primary-key nil t nil) #s(cl-slot-descriptor closql-foreign-key nil t nil) #s(cl-slot-descriptor closql-order-by nil t nil)] [nil nil nil nil nil nil] ...)) [#s(cl-slot-descriptor closql-database nil t nil)] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data (closql-database 1)) (forge-pullreq-post forge-issue-post forge-topic forge-note) ((:closql-database . closql-database)) [#s(cl-slot-descriptor closql-order-by nil t nil) #s(cl-slot-descriptor closql-foreign-key nil t nil) #s(cl-slot-descriptor closql-primary-key nil t nil) #s(cl-slot-descriptor closql-table nil t nil) #s(cl-slot-descriptor closql-class-suffix nil t nil) #s(cl-slot-descriptor closql-class-prefix nil t nil)] [nil nil nil nil nil nil] ...)) [#s(cl-slot-descriptor closql-database nil t nil)] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data (closql-database 1)) (forge-revnote forge-pullreq forge-issue) ((:closql-database . closql-database)) [#s(cl-slot-descriptor closql-class-prefix nil t nil) #s(cl-slot-descriptor closql-class-suffix nil t nil) #s(cl-slot-descriptor closql-table nil t nil) #s(cl-slot-descriptor closql-primary-key nil t nil) #s(cl-slot-descriptor closql-foreign-key nil t nil) #s(cl-slot-descriptor closql-order-by nil t nil)] [nil nil nil nil nil nil] ...)) [#s(cl-slot-descriptor closql-database nil t nil) #s(cl-slot-descriptor id 'eieio--unbound t nil) #s(cl-slot-descriptor repository 'eieio--unbound t nil) #s(cl-slot-descriptor number 'eieio--unbound t nil) #s(cl-slot-descriptor state 'eieio--unbound t nil) #s(cl-slot-descriptor author 'eieio--unbound t nil) #s(cl-slot-descriptor title 'eieio--unbound t nil) #s(cl-slot-descriptor created 'eieio--unbound t nil) #s(cl-slot-descriptor updated nil t nil) #s(cl-slot-descriptor closed 'eieio--unbound t nil) ...] #s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data (closql-database 1 id 2 repository 3 number 4 state 5 author 6 title 7 created 8 updated 9 closed 10 ...)) nil ((:closql-database . closql-database) (:id . id) (:repository . repository) (:number . number) (:state . state) (:author . author) (:title . title) (:created . created) (:updated . updated) (:closed . closed) ...) [#s(cl-slot-descriptor closql-order-by [(desc number)] t nil) #s(cl-slot-descriptor closql-foreign-key 'repository t nil) #s(cl-slot-descriptor closql-primary-key 'id t nil) #s(cl-slot-descriptor closql-table 'issue t nil) #s(cl-slot-descriptor closql-class-suffix nil t nil) #s(cl-slot-descriptor closql-class-prefix "forge-" t nil)] [[(desc number)] repository id issue nil "forge-"] ...) #s(forge-database #s(emacsql-sqlite-builtin-connection #<sqlite db=0xc242588 name=/home/myuser/.config/emacs/forge-database.sqlite> nil #<finalizer> "/home/myuser/.config/emacs/forge-database.sqlite")) "[redacted]" "[redacted]" 19 open "myuser" "Configure MyProject authentication over OAuth2" "2024-05-16T09:50:47.040Z" "2024-05-17T06:18:35.981Z" ...), "next"
@tarsius tarsius added bug upstream An upstream bug we have to live with and removed bug upstream An upstream bug we have to live with labels Jun 2, 2024
@tarsius
Copy link
Member

tarsius commented Jun 3, 2024

That isn't implemented yet. I started working on it when you opened this, but because I really want to get a release out, it will have to wait until that is done.

@tarsius tarsius added the enhancement New feature or request label Jun 3, 2024
@zoechi
Copy link
Author

zoechi commented Jun 3, 2024

No problem at all, except a bit surprising. Thanks a lot for this package 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: gitlab enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants