90e5fffcd65a786b8344d46246f31f14ecc98dbe,api/data_refinery_api/views.py,TranscriptomeIndexDetail,get,#TranscriptomeIndexDetail#Any#Any#,522
Before Change
raise ValidationError(errors)
url = self.get_s3_url(params["organism"], params["length"])
return Response(url)
After Change
// Get the correct organism index object, serialize it, and return it
transcription_length = "TRANSCRIPTOME_" + params["length"].upper()
try:
organism_index = (OrganismIndex.public_objects.exclude(s3_url__exact="")
.distinct("organism__name", "index_type")
.get(organism__name=params["organism"],
index_type=transcription_length))
serializer = OrganismIndexSerializer(organism_index)
return Response(serializer.data)
except OrganismIndex.DoesNotExist:
raise Http404
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: AlexsLemonade/refinebio
Commit Name: 90e5fffcd65a786b8344d46246f31f14ecc98dbe
Time: 2018-07-02
Author: willvauclain.dev@gmail.com
File Name: api/data_refinery_api/views.py
Class Name: TranscriptomeIndexDetail
Method Name: get
Project Name: chakki-works/doccano
Commit Name: 25b43f818fc0dc6a8e4414631a1bb48a96f43aba
Time: 2021-02-16
Author: light.tree.1.13@gmail.com
File Name: app/api/views.py
Class Name: AutoLabelingConfigTest
Method Name: post
Project Name: chakki-works/doccano
Commit Name: b190be011513eaf6f884551fa7273a1943d933e9
Time: 2021-02-27
Author: light.tree.1.13@gmail.com
File Name: app/api/views/label.py
Class Name: LabelUploadAPI
Method Name: post