FEEDBACK service — https://script.google.com/macros/s/AKfycbwHTr8MSFuNio8rky8tflcErlRlAb1YSH2jmszZp77SM5e_-SVMO2pBU1UmeGOH1Aig/exec
Action: suggestYear
Valid year range is 1980–2099. Suggestions outside this range are rejected with an error.
How it works
- The suggestion is recorded in the
SugerenciasAñosheet. - The server counts how many users have already voted for the same
vehicleId+newYearcombination. - If the vote count is below 3, the response confirms how many more votes are needed.
- At 3 votes, the server extends the vehicle’s
anoDesdeoranoHastafield to include the new year (if it doesn’t already), subject to collision checking. - The change is logged in the
ActividadUsuariosheet with activity typeapply_year_suggestion.
Request
Must be
"suggestYear".The ID of the vehicle entry whose year range should be extended.
The year to suggest adding to the vehicle’s range. Must be between 1980 and 2099.
The ID of the user submitting the suggestion.
The display name of the user submitting the suggestion. Stored in the activity log.
Response
One of
"success", "info", "warning", or "error"."success"— suggestion recorded, or year range successfully updated (3 votes reached)."info"— the suggested year is already within the existing range, or no range update was needed."warning"— the year collides with another vehicle entry and requires manual review."error"— missing parameters, invalid year, or vehicle not found.
A human-readable explanation of the outcome. Examples:
"Sugerencia para el año 2019 registrada. Se necesitan 2 más para aplicar el cambio.""¡Gracias! Con 3 votos confirmados, el rango de años se ha actualizado a 2015-2021.""La sugerencia para el año 2019 no se puede aplicar porque parece corresponder a una generación diferente del mismo modelo."