Page MenuHomeGitPull.it

Allow specific Archives to be not shown from "Around me"
Closed, ResolvedPublic2 Points

Description

Creare una pagina (raggiungibile dalla scrivania) dove si possano gestire gli archivi da far comparire nell'around me.

ES: To for Ucraina, Ge for Ucraina, Negozi a casa, sono archivi di cui non abbiamo più particolare interesse e non vogliamo che le persone quando girano per Torino si trovino davanti luoghi non fondamentali.

TODO

  1. modifica struttura database Archivi e incrementare versione database
  2. modificare entità Archivio
  3. lanciare script di aggiornamento
  4. aggiunta campo backend Archivi
  5. persistere valore frontend
  6. modificare API per rispettare il valore

Current database structure

CREATE TABLE `archive` (
  `archive_ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `archive_uid` varchar(64) NOT NULL,
  `archive_latitude` float(9,6) DEFAULT NULL,
  `archive_longitude` float(9,6) DEFAULT NULL,
  `archive_zoom` tinyint(1) unsigned DEFAULT NULL,
  `archive_name` varchar(64) NOT NULL,
  `archive_name_en` varchar(64) DEFAULT NULL,
  `archive_name_uk` varchar(64) DEFAULT NULL,
  `archive_name_de` varchar(64) DEFAULT NULL,
  `archive_name_fr` varchar(64) DEFAULT NULL,
  `archive_name_zh` varchar(64) DEFAULT NULL,
  `archive_status` enum('stub','deleted','private','group-published','pubblication-queue','published','hidden','password') NOT NULL,
  `archive_description` text,
  `archive_description_en` text,
  `archive_description_uk` text,
  `archive_description_de` text,
  `archive_description_fr` text,
  `archive_description_zh` text,
  `archive_img_color` varchar(7) DEFAULT NULL,
  `archive_text_color` varchar(7) DEFAULT NULL,
  `archive_img` varchar(255) DEFAULT NULL,
  `archive_imgsquare` text,
  `archive_img_poi` varchar(255) DEFAULT NULL,
  `archive_img_manifest` varchar(128) DEFAULT NULL,
  `archive_suggest_children` tinyint(1) NOT NULL DEFAULT '0',
  `archive_external_urls` text,
  `archive_tileserver` varchar(16) DEFAULT NULL,
  `archive_vip` tinyint(1) NOT NULL DEFAULT '0',
  `archive_showarea` tinyint(1) DEFAULT NULL,
  `archive_order` int(11) DEFAULT NULL,
  `archive_creation_data` datetime NOT NULL,
  `archive_lastedit_data` datetime NOT NULL,
  `archive_creation_user_ID` int(10) unsigned NOT NULL,
  `archive_lastedit_user_ID` int(10) unsigned NOT NULL,
  `archive_parent` int(10) unsigned DEFAULT NULL,
  `archive_calendartitle_it` varchar(64) DEFAULT NULL,
  `archive_calendartitle_en` varchar(64) DEFAULT NULL,
  `archive_calendartitle_uk` varchar(64) DEFAULT NULL,
  `archive_calendartitle_de` varchar(64) DEFAULT NULL,
  `archive_calendartitle_fr` varchar(64) DEFAULT NULL,
  `archive_calendartitle_zh` varchar(64) DEFAULT NULL,
  `archive_ismicro` tinyint(1) DEFAULT NULL COMMENT '1 = micro (displayed near floor), 0 = macro (useful if distant)',
  `archive_pin` tinyint(1) DEFAULT NULL,
  PRIMARY KEY (`archive_ID`),
  KEY `archive_parent` (`archive_parent`),
  KEY `archive_creation_user_ID` (`archive_creation_user_ID`,`archive_lastedit_user_ID`),
  KEY `archive_lastedit_user_ID` (`archive_lastedit_user_ID`),
  KEY `archive_ismicro` (`archive_ismicro`),
  CONSTRAINT `archive_ibfk_1` FOREIGN KEY (`archive_parent`) REFERENCES `archive` (`archive_ID`) ON DELETE SET NULL,
  CONSTRAINT `archive_ibfk_2` FOREIGN KEY (`archive_creation_user_ID`) REFERENCES `user` (`user_ID`),
  CONSTRAINT `archive_ibfk_3` FOREIGN KEY (`archive_lastedit_user_ID`) REFERENCES `user` (`user_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Revisions and Commits

Event Timeline

Lavoreremo in deny-list, aggiungendo una pagina nel backend già esistente della modifica Archivi.

valerio.bozzolan set the point value for this task to 2.
valerio.bozzolan updated the task description. (Show Details)
valerio.bozzolan updated the task description. (Show Details)
valerio.bozzolan renamed this task from Around me to Allow specific Archives to be not shown from "Around me".Sep 21 2023, 11:41
valerio.bozzolan closed this task as Resolved by committing Restricted Diffusion Commit.Sep 21 2023, 11:56
valerio.bozzolan added a commit: Restricted Diffusion Commit.