No release date for GET /artist/[id]/albums? - deezer

In the context of showing all albums of a given artist, as returned by e.g.
http://api.deezer.com/artist/13/albums,
..I would assume it's a pretty common use case to want to sort the albums in discographical order (i.e. by release date) for display.
Yet, I haven't found a way to do that, as the release_date property seems to only be available when requesting a single album, and I haven't found a way to affect the sort order in the response.
Am I missing something?
Any help with this is much appreciated! Thx.

I don't think there is a possiblity to do this straight forward at the moment, maybe you can file a request at Deezer's side.
You can get a list of all albums for an artist, open the details for each album individually (album/albumid), add them to a list which you can then sort on release date.
Seems like a bit of a hassle for something that will probably be a quick job on Deezer's side, but if you really need it, that's the way at the moment.

We just added the release_date property on the endpoint /artist/[id]/albums.
Jimmy

Related

Making a cart in unity?

I am trying to make a cart that checks if the right item have been placed inside. I dont know how i would build this the best way. The way i would build this is by making the cart check for gameobjects names and then check if its the right one.
The result of doing it the way i would have done it, Is alot of werid names and also making it hard to add more items due to it almost being fully hardcoded.
First i thougt of using tags but i already use them for my pickup system and since you cant have more then one for some reason i cant.
You can try storing the products in a List. Each product would (inherit maybe) from the a Product.cs and each time you add one product in the cart, update the List.
Also you can check if is the right one before calling the cartList.Add() based on a string field(or int maybe?) in the Product.cs.
You can also store all the Product.cs in the Start method, either in a List or a dictionary, and check if it’s the right one before adding to cartList.
Sorry for the vague answer, I fast-typed on my phone. I hope this helps.

Bug with and without linked test cases

I want to pin a chart to the Azure DevOps Services dashboard that shows how many bugs in the current sprint have a linked test case or not.
I have been able to put up a query for the same but it appears that such queries can't be charted out. Is there an alternate way?
Here's the error that I get while creating a chart out of my query
Additionally, I would also like to know if there is a way to ensure that when I Resolve/Close a bug workitem in AzDo services, I can check if there is at least one associated test case work item with the bug. I have explored Bug rules but can't find out a clean way to get the link types associated with the work item. How can I achieve this?
Thanks
I have been able to put up a query for the same but it appears that
such queries can't be charted out. Is there an alternate way?
As for the error you got, it's one open issue here in our feedback forum, the product team is considering about it. But there might be some time before the feature comes true. You can track the issue to get notifications if there's any update. Sorry for the inconvenience.
Is there an alternate way?
If you just need a widget to display the results of the query, you can consider using Query Results widget, if supports tree or direct links. But if you do want the pie chart for WITs, I afraid it's not supported for now when using tree or direct links. You can check the related extensions here.
I have explored Bug rules but can't find out a clean way to get the
link types associated with the work item. How can I achieve this?
As I know we don't have such option in Azure Devops Boards.
If we close/delete one workItem, it won't display a prompt or what that tells us the related workItems are still active.
But I think that would be a great idea, so I suggest you can post one feature request here to share your idea to product team. Then we can share the feature request link here and people who interested in that would vote for you! Hope all above make some help :)

Determining how many people have been added to a facebook group by a single member

I am the admin of a Facebook group and am trying to keep track of how many people each user has added. I cannot seem to nail down how I can easily write a script to:
Determine how many people a User has added.
Echo that to a file in the format $User:$number_of_added_members.
I've been made aware I cannot do this with the API, I am banging my head against a wall here. If anyone could at least point me in the right direction it would be much appreciated.
I just did this...
actually i am a programmer and did it in the hard way because i needed group by users. I hoped that the graph api at least give me an xml of user with added by in order to make my code read it but it did not so what i did is just to copy the table on the members page and paste it on a txt file and make a python code read it and make a dictionary of user: number_of_users_he_added.
it was quick but there is a problem that the members page does not give u all the results, its infinity scroll and i have a lot of members.
u can write a js script that read the dom instead of copy paste or even a chrome extension but still have the problem with the infinity scroll.
if facebook provide the added by field in their graph it will be great
Maybe you can work with the site which lists all members and look for the string below the member which says "added by on " But I'm not sure, how long this stays before it switches to "in the group since"
Edit
Use a crawler software like the one in Symfony to traverse the HTML of the page. You will need a PHP CLI for this tool. DOMCrawler from Symfony

How can I use the name_tags field of the Photo object?

Uploading a photo, and setting the name (caption) of that photo is no problem, I am trying to tag a name I mention in the caption. According to the documentation, the way to do that is with the name_tags field.
The field is listed in the api-reference, but I can't find the correct way to use it, and there is no example either.
I could find one other question about this here, but it was never answered (he just gave up and used something else).
Does anyone know if the name_tags field is actually there to be used through the api, and if yes, how?
I think you should try to using message_tags field.

Dynamic Form Fields

I'm not exactly sure what to call the thing i am searching for. If I knew what to call it I might find the answer, so if you have an answer to my question or even know what I can search for that would be very helpful.
I am trying to create a simple php form that has standard fields like name, email, etc. I want to add an event type field that is a drop down with pre-selected values (i.e wedding, birthday, etc). Once they select a particular event I want other options to appear.
For exmaple they would select wedding and then date, venue, etc would then come up. If they selected birthday, then different additional options would appear.
Does anyone know the technical term for this, or where I can find a tutorial on it? Does it require ajax or jquery or something else?
Thanks for your help.
You could do this with jQuery. It sounds like you want more than just dynamic select (drop down) inputs. You could check this blog post out, but that really only covers the drop down fields.
It sounds like you want something fairly custom. You could separate your form into the individual steps and hide many of the fields to start. With jQuery, you can apply event handlers to fire functions when something is selected and then the function would determine what fields to show.
You don't really need to use AJAX unless you need the options (specifically drop downs) to contain options which are pulled from a dynamic source (e.g. a database).