Commit Graph

37 Commits

Author SHA1 Message Date
Matt Gibson 090ad790f5
Specify Organization indexed on search service (#356)
* Specify Organization indexed on search service

a null indexedEntityId specifies it is the users entire vault.
otherwise, organizations specify their id to signify the index is a subset.

user's vault will re-index if the indexed entity does not match the
users id or null. at the moment, user's vault does not set userId
because indexing occurs in the setter for decryptedCipherCache,
which cannot be asynchronous

* Linter fix
2021-04-22 14:53:45 -05:00
Steven 728e40fbfa
Optimize isSearchable for Chinese. (#330)
* Optimize isSearchable for Chinese.

* Fix lint.

* Fix lint.
2021-04-07 10:51:34 -04:00
Matt Gibson bc7bd5bd3f
Pass ciphers to index and indexed ciphers to search service (#318) 2021-04-02 16:32:30 -05:00
Matt Gibson 58f40b0085
Fix glob processing in npm. Ban single param parens (#257) 2021-02-04 09:49:23 -06:00
Matt Gibson 09c444ddd4
Add send to cli (#253)
* Upgrade commander to 7.0.0

* Add url to Api call

This is needed to allow access to sends that are available from a
different Bitwarden server than configured for the CLI

* Allow upload of send files from CLI

* Allow send search by accessId

* Utils methods used in Send CLI implementation

* Revert adding string type to encrypted file data

* linter fixes

* Add Buffer to ArrayBuffer used in CLI send implementation
2021-01-29 15:08:52 -06:00
Matt Gibson e1f1d7e702
Enable search for sends (#249) 2021-01-22 19:54:22 -06:00
Matt Gibson 2c414ce27a
Use log service for console messages (#221)
* Use logService for console messages

* Implement a base ConsoleLog service

Use this class as a default for other services that would like to output
to console. This service is overriden in CLI and Desktop to use CLI's
consoleLogService and electronLogService, respectively.

* Use browser-process-hrtime for timing

* test LogService implementations

* Ignore default import of hrtime

* Clean up imports. Require ConsoleLog injection

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-11 10:44:57 -06:00
Matt Gibson 2b8c2c2b3e
Revert "Use logService for console messages (#214)" (#219)
This reverts commit 0fed528b6f.
2020-12-04 13:58:32 -06:00
Matt Gibson 0fed528b6f
Use logService for console messages (#214)
* Use logService for console messages

* linter autofixes

* Use full import path

* Implement a base ConsoleLog service

Use this class as a default for other services that would like to output
to console. This service is overriden in CLI and Desktop to use CLI's
consoleLogService and electronLogService, respectively.

* linter fixes

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-04 12:38:26 -06:00
Chad Scharf 5e0a2d1d99
remove old Edge browser hacks (#168)
* remove old Edge browser hacks

* Remove final edge hacks

* Update constructor parameters

* Update search-ciphers.pipe.ts

Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>
2020-09-15 10:23:21 -04:00
Oscar Hinton e516692559
Upgrade TypeScript (#148)
* Update typescript to 3.6.5 along with tslint to latest.

* Upgrade @types/node to 12.12.54 to get rid of compile errors.

* Update tslint.

* Use @types/node 10.17.28 instead
2020-08-12 15:42:42 -04:00
mtgto 8438cafbd0
Update lunr type (#93) 2020-04-14 15:16:18 -04:00
Chad Scharf 3a10c1ff30 [Soft Delete] - cipher search rem deleted flag, filter array conditional 2020-04-08 16:44:13 -04:00
Chad Scharf 19668ab5f2 [Soft Delete] jslib updates for new API updates
New API methods and cipher Deleted Date property, plus search expansion to toggle on deleted flag.
2020-04-03 16:32:15 -04:00
Kyle Spearrin 15cf7b433a delay search if indexing 2019-07-23 08:28:53 -04:00
Kyle Spearrin 45cb346be1 Revert "no need to just search name on edge any longer"
This reverts commit 20fb4d3a39.
2019-04-12 09:56:15 -04:00
Kyle Spearrin 20fb4d3a39 no need to just search name on edge any longer 2019-04-12 09:50:24 -04:00
Kyle Spearrin 9e97b1e656 add each token as a search term 2019-01-28 11:06:28 -05:00
Kyle Spearrin b01709240e init view properties 2019-01-25 09:30:21 -05:00
Kyle Spearrin 2c4005d4c7 index organizationid for search 2018-10-30 11:03:41 -04:00
Kyle Spearrin fc1bcb34a0 null check 2018-09-27 08:32:48 -04:00
Kyle Spearrin d9808250c6 lowercase fields 2018-09-14 09:22:35 -04:00
Kyle Spearrin 7dc14a0d18 strip asterisk from subtitle of cards 2018-09-12 10:27:21 -04:00
Kyle Spearrin cf795bc39c dont index asterisk on card last4 2018-09-12 10:22:46 -04:00
Kyle Spearrin eb48abbcf6 update lunr for leading wildcard searches 2018-09-03 21:51:19 -04:00
Kyle Spearrin 75d4db81f7 trailing wildcard search on split uris 2018-08-21 09:04:52 -04:00
Kyle Spearrin b64757132f index login.uris_split 2018-08-20 08:41:12 -04:00
Kyle Spearrin 1f9fbe43d7 trim lunr query after > 2018-08-17 11:07:50 -04:00
Kyle Spearrin bdbba8c493 switch to only trailing wildcard searches 2018-08-17 11:05:06 -04:00
Kyle Spearrin 9ba3c17626 allow ciphers to be passed into search service 2018-08-16 23:32:37 -04:00
Kyle Spearrin 8448b48cd7 dont sort search results 2018-08-13 16:03:24 -04:00
Kyle Spearrin 2efe788d96 joined fields and attachments indexing 2018-08-13 16:00:21 -04:00
Kyle Spearrin bdb2efd770 searchCiphersBasic 2018-08-13 14:28:10 -04:00
Kyle Spearrin d917651d9f search pending and is searchable 2018-08-13 11:52:55 -04:00
Kyle Spearrin b724448081 search service implementation with lunr 2018-08-13 09:42:52 -04:00
Kyle Spearrin ad4c81ed84 support for uri matching types to cipher service 2018-03-02 12:03:03 -05:00
Kyle Spearrin 6aef18ee7f search service with lunr implementation 2018-02-28 15:15:10 -05:00