Skip to content

Conversation

pzrq
Copy link
Contributor

@pzrq pzrq commented Jan 20, 2017

Just looking for a quick pair of 👀 over this and hopefully an LGTM / merge.

This is an enabler for COMPASS-558 (see #745).

The only user-facing changes should be below - making the Drop modals more aware of the database to be dropped.

Drop Database Before
old drop database

Drop Database After
new drop database

Drop Collection Before
old drop collection

Drop Collection After
new drop collection

@pzrq pzrq force-pushed the COMPASS-665-decouple-ddl branch 2 times, most recently from f9fa46c to 6e6494d Compare January 20, 2017 23:53
@pzrq
Copy link
Contributor Author

pzrq commented Jan 21, 2017

@rueckstiess Just following up our chat before the Share & Learn.

I agree that ddl is probably not an appropriate final name for this package in light of sortDatabases being the lone non-ddl action suggesting we do want a different superset name, however my thinking remains that we want to get COMPASS-558 done this sprint and so:

  • naming things 😄
  • done is better than perfect
  • this change set decouples ddl or whatever we choose to name it from the server-stats package where it definitely does not belong
  • ddl is almost unique and thus relatively easy to search for and rename again

Could I suggest creating a 1-3 story point ticket for our next sprint (which I'd be happy to pick up), ideally one that clarifies:

  • the instance (e.g. App.InstanceActions => instance package perhaps?) vs
  • databases vs database (ddl vs database internal packages, perhaps renaming the ddl internal-package to instance as suggested) vs
  • collections vs collection(e.g. collections-store vs collection-store)
  • any other things that show up in grooming such a ticket

If that's not acceptable please let me know the way you'd like us to proceed forward, thanks 👍

@pzrq pzrq requested a review from rueckstiess January 21, 2017 00:23
@pzrq pzrq force-pushed the COMPASS-665-decouple-ddl branch from 6e6494d to 5f4c925 Compare January 21, 2017 00:37
@pzrq
Copy link
Contributor Author

pzrq commented Jan 21, 2017

Rebased on master to resolve merge conflicts with #749

@pzrq pzrq mentioned this pull request Jan 21, 2017
18 tasks
@rueckstiess
Copy link
Contributor

Just pick one of:

  • database-ddl
  • databases-table
  • databases

}
.drop-confirm-namespace {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
font-size: 90%;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure about relative font sizes. I don't think we use that anywhere else. Let's use an absolute one, in px or em.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 changed to 13px

{
"name": "ddl",
"productName": "Compass Data Definition Language",
"description": "Data Definition Language (DDL) operations for Compass",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change the name to one of

  • database-ddl
  • databases-table
  • databases

and update the description as well. Otherwise it's really confusing as it doesn't actually contain any DDL except for databases.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 database-ddl works for me


.drop-confirm-namespace {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
font-size: 90%;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above. use absolute font size.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 changed to 13px

@pzrq pzrq force-pushed the COMPASS-665-decouple-ddl branch 2 times, most recently from 846d79c to 634bf0d Compare January 23, 2017 02:17
@pzrq pzrq force-pushed the COMPASS-665-decouple-ddl branch from 634bf0d to 048586f Compare January 23, 2017 02:59
@pzrq
Copy link
Contributor Author

pzrq commented Jan 23, 2017

@rueckstiess 👍 Thanks for the feedback, ready for the next round of review.

@rueckstiess
Copy link
Contributor

LGTM but needs rebase.

pzrq added 10 commits January 24, 2017 11:47
… arg

Which means it can be reused in other contexts like the sidebar (incoming).
Tooltips finally work (when integrated with COMPASS 558).
Tooltips almost finally work (when integrated with COMPASS 558).
Incoming soon: The drop collection assumes you are managing the current database, shouldn’t be too hard to refactor :)
For consistency with drop collection.
Plurals are confusing and explicit is preferred over implicit, as we already have a database internal-package and the modals are no longer hard-wired to the database-table as they will shortly be able to be triggered from the sidebar.
@pzrq pzrq force-pushed the COMPASS-665-decouple-ddl branch from 4fea6c1 to 67a6783 Compare January 24, 2017 00:48
@pzrq
Copy link
Contributor Author

pzrq commented Jan 24, 2017

Thanks @rueckstiess, hopefully you're starting to see why I think getting review done fast is a good thing, less rebasing followed by waiting on Travis and retrying if functional tests fail 👍

@pzrq pzrq force-pushed the COMPASS-665-decouple-ddl branch from 67a6783 to 3678088 Compare January 24, 2017 01:05
@pzrq
Copy link
Contributor Author

pzrq commented Jan 24, 2017

Woohoo Travis finally passed!

@pzrq pzrq merged commit 1ec3049 into master Jan 24, 2017
@pzrq pzrq deleted the COMPASS-665-decouple-ddl branch January 24, 2017 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants