<div dir="ltr">Hello,<br><br>After speaking with the other GSOC student working on AppRecommender, this format may work for the work his is developing. His is work is to implement an strategy in AppRecommender that recommends packages to the user just after the user install a package. For example, if the user is installing vim and uses git a lot, AppRecommender can recommend vim-fugitive to the user after the install process is complete.<br><br>Although this is not the usual scenario for AppRecommender, the suggests tag can work for this new strategy. However, if you think it is better to think of a new tag that encapsulates both approaches no problem. Either way, I have sent a MR containing the implementation of the suggests tag. I have implemented this feature like the first approach commented by Richard, using a single suggests tag, but his idea for the tag name makes sense to me, so I can change my implementation if that is necessary.<br><br>Best regards,<br>Lucas Moura</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 21, 2016 at 11:40 AM, Matthias Klumpp <span dir="ltr"><<a href="mailto:matthias@tenstral.net" target="_blank">matthias@tenstral.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">2016-07-20 16:58 GMT+02:00 Richard Hughes <<a href="mailto:hughsient@gmail.com">hughsient@gmail.com</a>>:<br>
> Hi all,<br>
><br>
> I've been trying to add <suggests> into appstream-glib. I've got a few<br>
> questions:<br>
<br>
</span>Please don't implement that yet - this feature doesn't really work<br>
well for tools like AppRecommender, where apps are not the source of<br>
the recommendeation, which reduces its usefulness to just a way for<br>
upstream projects to recommend stuff.<br>
<br>
I would like to have some time to flesh out the details further,<br>
especially in the light of the new AppStream curation metadata<br>
proposal, which I am going to make.<br>
The sprint is taking quite some of my time though, that's why I<br>
haven't written down the proposal yet.<br>
<div><div class="h5"><br>
<br>
<br>
> Is it supposed to be:<br>
><br>
> <component><br>
>   <suggests type="upstream"><br>
>     <id>org.example.Bar.desktop</id><br>
>     <id>...</id><br>
>   </suggests><br>
>   <suggests type="some-other-method"><br>
>     <id>org.example.Baz.desktop</id><br>
>     <id>...</id><br>
>   </suggests><br>
> </component><br>
><br>
> or:<br>
><br>
> <component><br>
>   <suggests type="upstream"><br>
>     <suggest type="upstream"><br>
>       <id>org.example.Bar.desktop</id><br>
>       <id>...</id><br>
>     </suggest><br>
>   </suggests><br>
> </component><br>
><br>
> To me the former makes sense, but the tag name doesn't -- in the other<br>
> tags a plural means we nest singular terms. Would doing this make more<br>
> sense:<br>
><br>
> <component><br>
>   <suggest type="upstream"><br>
>     <id>org.example.Bar.desktop</id><br>
>     <id>...</id><br>
>   </suggest><br>
>   <suggest type="some-other-method"><br>
>     <id>org.example.Bar.desktop</id><br>
>     <id>...</id><br>
>   </suggest><br>
> </component><br>
><br>
> I don't see the need in a <suggests> parent, although I'd be up for<br>
> that if you think it would make sense. Thanks!<br>
<br>
</div></div>The idea was exactly what you proposed last, but as said, I am not<br>
sure that having this is a good idea at time, before we have a<br>
consistent story for how suggestions are handled in AppStream.<br>
<br>
Cheers,<br>
    Matthias<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Debian Developer | Freedesktop-Developer<br>
I welcome VSRE emails. See <a href="http://vsre.info/" rel="noreferrer" target="_blank">http://vsre.info/</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
AppStream mailing list<br>
<a href="mailto:AppStream@lists.freedesktop.org">AppStream@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/appstream" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/appstream</a><br>
</div></div></blockquote></div><br></div>