Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

EDA - histogram app constraints allow an integer ordinal but back end only allows continuous

Aperta
#254 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
r

Direzione di ricerca

Start with the histogram xAxisVariable constraints shown in the issue and the backend validation reported by validateHistogramPD. Compare the accepted variable shapes with the Rserve error for an integer ordinal Study year, then verify that the constraint and backend agree and that the histogram rejects or handles the variable consistently.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

production site and dev
GEMS 1
visualisation
histogram
x = Study year

image

Rserve log

2024-03-22 11:37:35.852115 Value is set to `count`. Resulting histogram object will represent counts of unique x-axis bins per group.
Error in validateHistogramPD(.histo, verbose) : 
  The independent axis must be continuous for a histogram.

Variable metadata. (type=integer, shape=ordinal)

image

apps constraints for pass->histogram

{
	"0": {
		"name": "histogram",
		"displayName": "Histogram",
		"description": "Visualize the distribution of a continuous variable",
		"projects": [
			"ClinEpiDB",
			"MicrobiomeDB"
		],
		"maxPanels": 1,
		"dataElementConstraints": [
			{
				"xAxisVariable": {
					"isRequired": true,
					"minNumVars": 1,
					"maxNumVars": 1,
					"allowedTypes": [
						"number",
						"date",
						"integer"
					],
					"description": "Variable must be a number or date."
				},
				"facetVariable": {
					"isRequired": false,
					"minNumVars": 1,
					"maxNumVars": 2,
					"maxNumValues": 10,
					"description": "Variable(s) must have 10 or fewer unique values and be of the same or a parent entity as the Overlay variable."
				},
				"overlayVariable": {
					"isRequired": false,
					"minNumVars": 1,
					"maxNumVars": 1,
					"maxNumValues": 8,
					"description": "Variable must have 8 or fewer unique values and be of the same or a parent entity as the X-axis variable."
				}
			}
		],
		"dataElementDependencyOrder": [
			[
				"xAxisVariable"
			],
			[
				"overlayVariable",
				"facetVariable"
			]
		]
	}
}

Seems that it should also be allowedShapes: [ 'continuous' ], ?

Lingua principale
R
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di VEuPathDB/plot.data

Tutte le issue di VEuPathDB/plot.data

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.