Skip to content

As a developer, I want a describe command to provide connection/service info for a site #35

Closed

Description

@rickmanelius

Background: the intention behind this is to introduce and/or refine the list commands to include additional information about other tools and urls the end user would want to be aware of. Example: URLs to phpmyadmin.

Acceptance Criteria:

  • ddev describe command exists.
  • ddev describe can pull the sitename when run from within a working directory.
  • ddev describe SITENAMEcan be run globally because this information is pulled from Docker and therefore not restricted to a working directory.
  • Command line output matches the suggestion posted here As a developer, I want a describe command to provide connection/service info for a site #35 (comment).
  • Documentation for end-user.
  • Documentation for extending the command to include additional metadata.
  • Define tests to confirm that services exist.
  • Define tests to confirm the credentials for the database connection.

Activity

  1. added this to the milestone on Feb 27, 2017
  2. changed the title [-]STUB: As a developer, I want a list of URLs to local services.[/-] [+]As a developer, I want a command to provide connection/service info for a site[/+] on Mar 8, 2017
  3. tannerjfco commented on Mar 8, 2017

    @tannerjfco
    Contributor

    Here is the example describe behavior we discussed and agreed upon:

    Describe View

    Global describe with sitename argument

    $ pwd
    /Users/username
    $ ddev describe drud-d8
    
    NAME      	DOCROOT	                                TYPE  	URL                                	STATUS
    drud-d8   	/Users/username/Projects/drud-d8/src 	drupal8	http://drud-d8.ddev.local   		running
    
    MySQL Credentials
    -----------------
    Username:     	root
    Password:     	root
    Database name:	data
    
    Other Services
    --------------
    MailHog:    	http://drud-d8.ddev.local:8025
    PHPMyAdmin: 	http://drud-d8.ddev.local:8026

    From within the working directory

    $ pwd
    /Users/username/Projects/drud-d8
    $ ddev describe
    
    NAME        DOCROOT                                 TYPE    URL                                 STATUS
    drud-d8     /Users/username/Projects/drud-d8/src 	drupal8 http://drud-d8.ddev.local       running
    
    MySQL Credentials
    -----------------
    Username:     	root
    Password:     	root
    Database name:	data
    
    Other Services
    --------------
    MailHog:      http://drud-d8.ddev.local:8025
    PHPMyAdmin:   http://drud-d8.ddev.local:8026
  4. changed the title [-]As a developer, I want a command to provide connection/service info for a site[/-] [+]As a developer, I want a describe command to provide connection/service info for a site[/+] on Mar 21, 2017
  5. rickmanelius commented on Mar 21, 2017

    @rickmanelius
    ContributorAuthor

    One additional item I'd like to see from the "MySQL Credentials" portion. While this information is likely provided to the end-user during ddev start, it would be helpful to output the database hostname entry (URL + port). This would modify the above as follows:

    MySQL Credentials
    -----------------
    Username:     	root
    Password:     	root
    Database name:	data
    Connection:	localhost:1025
    

    We may want to revisit the same for the additional services if usernames/passwords are required. For now, that request can push off to the 0.3 milestone when/where we focus on tools.

  6. rickmanelius commented on Mar 21, 2017

    @rickmanelius
    ContributorAuthor

    I believe this is fully actionable and queued for milestone 0.2. I updated the ticket acceptance in the issue summary.

  7. self-assigned this
    on Mar 30, 2017
  8. rfay commented on Apr 17, 2017

    @rfay
    Member

    Closing, as AFAICT this is done, reopen if there's more to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions