Skip to content

Conversation

alenakhineika
Copy link
Contributor

@alenakhineika alenakhineika commented Apr 27, 2022

Description

In order to visually identify collections for which an EncryptedFieldConfig is present:

  • show the FLE2 badge on the header
  • show the FLE2 badge on the collections list

Screenshot 2022-04-27 at 17 28 28

Screenshot 2022-04-27 at 17 28 39

To test:

Enterprise replset [direct: primary] test> db.createCollection('test', { encryptedFields: { fields: [] } })
{ ok: 1 }
Enterprise replset [direct: primary] test> db.getCollectionInfos()
[
  {
    name: 'test',
    type: 'collection',
    options: {
      encryptedFields: {
        escCollection: 'enxcol_.test.esc',
        eccCollection: 'enxcol_.test.ecc',
        ecocCollection: 'enxcol_.test.ecoc',
        fields: []
      }
    },
    info: {
      readOnly: false,
      uuid: UUID("1a409397-ff35-4973-ae47-7bb85f5f5696")
    },
    idIndex: { v: 2, key: { _id: 1 }, name: '_id_' }
  }
]

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@alenakhineika alenakhineika changed the title feat: add collections fle2 badge COMPASS-5625 feat: add fle2 collection badge COMPASS-5625 Apr 27, 2022
@alenakhineika alenakhineika requested a review from addaleax April 27, 2022 13:14
Copy link
Collaborator

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

nice, thank you!

@alenakhineika alenakhineika merged commit d049a1b into main Apr 27, 2022
@alenakhineika alenakhineika deleted the COMPASS-5625-fle2-collection-badge branch April 27, 2022 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants