Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
S
stats-facil
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
facil
stats-facil
Validations
869e5715
Valider
869e5715
rédigé
il y a 9 ans
par
Matthieu Napoli
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Removed deprecated method scheduled for removal (fixing unit tests)
parent
e6333c28
Aucune branche associée trouvée
Branches contenant la validation
Aucune étiquette associée trouvée
Étiquettes contenant la validation
Aucune requête de fusion associée trouvée
Modifications
2
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
core/Archive.php
+0
-30
0 ajout, 30 suppressions
core/Archive.php
tests/PHPUnit/System/OneVisitorTwoVisitsTest.php
+0
-22
0 ajout, 22 suppressions
tests/PHPUnit/System/OneVisitorTwoVisitsTest.php
avec
0 ajout
et
52 suppressions
core/Archive.php
+
0
−
30
Voir le fichier @
869e5715
...
@@ -298,36 +298,6 @@ class Archive
...
@@ -298,36 +298,6 @@ class Archive
return
$result
;
return
$result
;
}
}
/**
* Queries and returns blob data in an array.
*
* Reports are stored in blobs as serialized arrays of {@link DataTable\Row} instances, but this
* data can technically be anything. In other words, you can store whatever you want
* as archive data blobs.
*
* If multiple sites were requested in {@link build()} or {@link factory()} the result will
* be indexed by site ID.
*
* If multiple periods were requested in {@link build()} or {@link factory()} the result will
* be indexed by period.
*
* The site ID index is always first, so if multiple sites & periods were requested, the result
* will be indexed by site ID first, then period.
*
* @param string|array $names One or more archive names, eg, `'Referrers_keywordBySearchEngine'`.
* @param null|string $idSubtable If we're returning serialized DataTable data, then this refers
* to the subtable ID to return. If set to 'all', all subtables
* of each requested report are returned.
* @return array An array of appropriately indexed blob data.
*
* @deprecated since Piwik 2.12. Use one of the getDatable* methods instead.
*/
public
function
getBlob
(
$names
,
$idSubtable
=
null
)
{
$data
=
$this
->
get
(
$names
,
'blob'
,
$idSubtable
);
return
$data
->
getIndexedArray
(
$this
->
getResultIndices
());
}
/**
/**
* Queries and returns metric data in a DataTable instance.
* Queries and returns metric data in a DataTable instance.
*
*
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
tests/PHPUnit/System/OneVisitorTwoVisitsTest.php
+
0
−
22
Voir le fichier @
869e5715
...
@@ -193,28 +193,6 @@ class OneVisitorTwoVisitsTest extends SystemTestCase
...
@@ -193,28 +193,6 @@ class OneVisitorTwoVisitsTest extends SystemTestCase
);
);
}
}
/**
* Test that Archive::getBlob won't fetch extra unnecessary blobs.
*/
public
function
testArchiveSingleGetBlob
()
{
$archive
=
Archive
::
build
(
self
::
$fixture
->
idSite
,
'day'
,
self
::
$fixture
->
dateTime
);
$cache
=
$archive
->
getBlob
(
'Actions_actions'
,
'all'
);
$foundSubtable
=
false
;
$this
->
assertTrue
(
count
(
$cache
)
>
0
,
"empty blob cache"
);
foreach
(
$cache
as
$name
=>
$value
)
{
$this
->
assertTrue
(
strpos
(
$name
,
"Actions_actions_url"
)
===
false
,
"found blob w/ name '
$name
'"
);
if
(
strpos
(
$name
,
"Actions_actions_"
)
!==
false
)
{
$foundSubtable
=
true
;
}
}
$this
->
assertTrue
(
$foundSubtable
,
"Actions_actions subtable was not loaded"
);
}
/**
/**
* Test that restricting the number of sites to those viewable to another login
* Test that restricting the number of sites to those viewable to another login
* works when building an archive query object.
* works when building an archive query object.
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter