pantheon-systems / terminus

The Pantheon CLI — a standalone utility for performing operations on the Pantheon Platform
https://pantheon.io
Other
320 stars 194 forks source link

site:list with upstream filter returns an empty list #2069

Open dknoben opened 4 years ago

dknoben commented 4 years ago

Expected behavior

When I run the site:list command with the upstream filter set, I expect it to return a list of sites that use that upstream.

terminus site:list --upstream=e8fe8550-1ab9-4964-8838-2b9abdccf4bf

Actual behavior

When I run the command I get an empty list. When I run it with -vvv, I see an array with a list of sites, but the response I get is [warning] You have no sites.

I can run the command using another upstream and get results, it is just with this upstream that I get an empty list

Here is the command I can run to get results terminus site:list --upstream=9d67dffa-b864-496e-8fb4-cbb984b7e162

Steps to reproduce the behavior

Run the command and get empty results terminus site:list --upstream=e8fe8550-1ab9-4964-8838-2b9abdccf4bf


 ------------------------- --------------------------------------------------------
  PHP binary                /usr/bin/php7.2
  PHP version               7.2.24-0ubuntu0.18.04.3
  php.ini used              /etc/php/7.2/cli/php.ini
  Terminus project config
  Terminus root dir         /home/pprice/terminus/vendor/pantheon-systems/terminus
  Terminus version          2.3.0
  Operating system          #37-Ubuntu SMP Mon Aug 27 15:21:48 UTC 2018
 ------------------------- --------------------------------------------------------```
generalredneck commented 2 years ago

Verifying that this is not still an issue. EDIT My initial test had an extraneous ':' at the end of the the upstream id. That said this only works now with the upstream GUID and not the string name like filtering by sites or other values do.


$ terminus site:info eiq-demo
 ------------------ ------------------------------------------------------------ 
  ID                 <<OMITTED>>                        
  Name               eiq-demo                                                    
  Label              EIQ Demo                                                    
  Created            2017-03-15 23:35:22                                         
  Framework          drupal8                                                     
  Region             United States                                               
  Organization       ec396c33-eeb4-4797-8e41-c46532c11d7a                        
  Plan               Performance Small                                           
  Max Multidevs      15                                                          
  Upstream           7f9c744c-5a4a-88b0-26dd-edc3bffdfb4d:                       
                     https://bitbucket.org/eiqpublicweb/eiq-public-websites.git  
  Holder Type        organization                                                
  Holder ID          ec396c33-eeb4-4797-8e41-c46532c11d7a                        
  Owner                                                                          
  Is Frozen?         false                                                       
  Date Last Frozen   1970-01-01 00:00:00                                         
 ------------------ ------------------------------------------------------------ 
$ terminus org:site:list ec396c33-eeb4-4797-8e41-c46532c11d7a --upstream=7f9c744c-5a4a-88b0-26dd-edc3bffdfb4d
 ------------ ------------------ ------------ ----------- ------------------ ----------- ---------- ------------ 
  Name         ID                 Plan         Framework   Owner              Created     Tags       Is Frozen?  
 ------------ ------------------ ------------ ----------- ------------------ ----------- ---------- ------------ 
...
  eiq-demo     <<OMITTED>>   Performanc   drupal8                        2017-03-1   Tools,US   false       
                                  Small                                     5           Brands                 
                                                                       23:35:22                           
 ...
 ------------ ------------------ ------------ ----------- ------------------ ----------- ---------- ------------