ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Chikunov <vt@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Q: Re: altrepodb - архитектура БД
Date: Mon, 20 Mar 2023 12:10:15 +0300
Message-ID: <20230320091015.rqefvr27ni6pblnb@altlinux.org> (raw)
In-Reply-To: <b4321378-3867-317d-2c11-d0a24ba46fc5@basealt.ru>

Danil,

Спасибо за ответ.

On Mon, Mar 20, 2023 at 09:20:49AM +0300, Danil Shein wrote:
> Добрый день!
> 
> Если я приавильно понял что вы хотите найти, то сделать можно вот так:
> 
> > /task/progress/find_tasks/task/progress/find_tasks/task/progress/find_tasks/task/progress/find_tasks:
> > 
> > curl -X 'GET' 'https://rdb.altlinux.org/api/task/progress/find_tasks?input=%40kernelbot&branch=p10&state=DONE,EPERM,FAILED,NEW&tasks_limit=10'
> Если вы не указываете имя исходного пакета (пакетов), то можно указать имя
> владельца задания в формате @MAINATINER.

(Как я понял это нужно только потому что поле input= обязательное.
Полезная информация.)

Возможно я неудачно выразился, мне нужно было вывести тот же список
заданий, что выводит команда сборочницы `task ls --user=kernelbot`.

То есть это список всех заданий на сборочнице этого пользователя.
Но это не все задания, которые есть в репозитории этого пользователя.

Как я понял2, чтоб этого достичь - единственный вариант, это указать в state=
все возможные состояния кроме DONE.

А API вызов find_tasks_lookup для этого не подходит, так как state= в нем
задать нельзя.



      parent reply	other threads:[~2023-03-20  9:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-18 17:27 Vitaly Chikunov
2023-03-18 20:36 ` Leonid Krivoshein
2023-03-18 20:54   ` Vitaly Chikunov
2023-03-20  5:42   ` Anton Farygin
2023-03-20  9:10   ` Vitaly Chikunov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230320091015.rqefvr27ni6pblnb@altlinux.org \
    --to=vt@altlinux.org \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git