Граф коммитов

4841 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] 626c764e1d Bump urllib3 from 1.26.12 to 1.26.13 in /tools
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.12 to 1.26.13.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/1.26.13/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.12...1.26.13)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-30 15:47:24 -05:00
Ben Dean-Kawamura 4c86544c04 Add an PRAGMA for `busy_timeout`
We have a lot of code to handle contention between transactions, so it
seems good to explicitly set it rather than rely on the default.
2022-11-29 17:15:08 -05:00
Tarik Eshaq ce8f1767d9
Cut release v96.1.0 (#5263) 2022-11-29 16:40:27 -05:00
Tarik Eshaq a2f6d96ef2
Exposes reset function swift (#5260)
* Adds funciton to reset persisted accounts state

* Allows iOS to pick up persisted changes in Account Manager
2022-11-28 18:09:00 -05:00
Jan-Erik Rediger 2300dd95b6
Update link to Wiki page (#5262) 2022-11-28 07:26:58 -06:00
lmarceau 0ce488ec37
Fix deprecation warnings in iOS Swift Keychain Wrapper code (#5259)
* Fix deprecation warnings

And various minor code fixes

* Fix build after being able to run it

* Fix swiftlint
2022-11-25 17:00:29 -05:00
Tarik Eshaq c4368dbda6
Fixes swift lint (#5257) 2022-11-21 15:15:37 -05:00
Ryan VanderMeulen 09849e22ee Update Glean to 51.8.2 2022-11-21 09:04:38 -05:00
Tarik Eshaq 02a41a2dcb
Polls all commands and not just one in iOS (#5236)
* Polls all commands and not just one in iOS

* Fix changelog
2022-11-20 13:13:02 -05:00
Sammy Khamis dca2ada6ab
Remove MinGW support on windows (#5243) 2022-11-18 11:46:25 -10:00
Ben Dean-Kawamura 1e06c01383 Cut release v96.0.1 2022-11-18 14:30:06 -05:00
Ben Dean-Kawamura 9b9281569f Adding changelog entry warning users against version 96.0.0 2022-11-18 14:29:40 -05:00
Ben Dean-Kawamura 8f9d0d365c Make places metrics more fine-grained (#5246)
Added `execute_one()` method to `ConnExt`.  I've wanted this a few times
before, but it's really nice for this new code.
2022-11-17 18:28:53 -05:00
Ben Dean-Kawamura 73047525fb Be more careful with URL redaction
I thought that the initial scheme was what Desktop used, but that was
just wrong.  If we're going to be using a new method, then let's be
extremely careful about any potential PII leaks.

The initial scheme potentially leaked PII, since URLs with many path
segments would have a relatively unique redacted version.  Therefore if
you had a known URL in mind like that, you could compare the redacted
string to the redacted versions of the URLs in the Sentry breadcrumbs
and potentially determine that it was likely the user visited the URL.
2022-11-17 17:59:37 -05:00
Tarik Eshaq e8d9e90107
Filters devices in device list by 21 days (#4984) 2022-11-17 17:16:36 -05:00
Charlie a30a294a24
add nimbus behavioral event recording to swift and kotlin apis (#5244)
* update Nimbus API record event definitions
2022-11-17 13:24:24 -06:00
Ryan VanderMeulen 10b2d4f2ce Update Glean to 51.8.1 2022-11-17 08:26:56 -05:00
Ben Dean-Kawamura 6ed8d8dedd Cut release v96.0.0 2022-11-16 16:11:33 -05:00
Sammy Khamis dd518cc746
update doucmentation on adding a component into desktop (#5241) 2022-11-16 10:53:55 -10:00
jhugman a67ecde477
Move Nimbus startup into Application Services (#5239) r=charlie
* Split up Nimbus.kt into smaller files

* Tidy docs

* Add Abstract Nimbus Builder and default implementations

* Add tests, ktlint and detekt

* Add changelog
2022-11-16 17:48:36 +00:00
Charlie 66b11684ee
add jexl transforms for behavioral targeting (#5228)
* adjust query method and tests based on feedback
* update query method to return an f64 instead of a u64
* update record_event to create counters when needed and update targeting helper definition
* add tests for recently updated methods
2022-11-16 12:24:32 -05:00
Ben Dean-Kawamura abf63b75b1 Handful of error updates after seeing the new Sentry reports
- Don't report `InvalidDatabaseFile` errors to Sentry.  These happen
  somewhat regularly with the SQLCipher migration code and we've decided
  we're okay with that since the recovery code seems to work well
  enough.
- Log a redacted version of the Login origin when we see errors
- Log a redacted version of the JWCrypto string when we see errors
2022-11-15 16:39:07 -05:00
Mark Hammond acc6fb67be
Unbitrot the sync-pass example's handling of the sync key (#5231) 2022-11-12 13:39:11 +11:00
jhugman 6d39fd2350
Change custom targeting attributes into JSONObject (#5229) r=travis
* Change custom targeting attributes into JSONObject

* Add changelog

* Address reviewer comments
2022-11-11 16:39:08 +00:00
Ryan VanderMeulen e189a73377 Update Glean to 51.8.0 2022-11-08 13:06:54 -05:00
Charlie Humphreys 7247ec0cd5
add behavioral targeting event store queries (#5226)
* add behavior event store query method
* update test behavior to correctly use new methods
* adjust query method and tests based on feedback
2022-11-07 12:10:27 -05:00
jhugman 746849140c
Populate targeting attributes with active_experiments (#5227) r=charlie
* Add active_experiments to targeting attributes

* Gain minimal mutable state locks to minimise the risk of deadlocking

* Add JEXL tests

* Add changelog
2022-11-07 14:37:33 +00:00
Ben Dean-Kawamura f3719bd194 Updating branch build code to work with firefox-android (#5218)
Also, updating the branch build code to work with owner references with
a colon, like `bendk:my-branch`.  This is what you get when clicking the
github copy branch name button.
2022-11-04 10:02:38 -04:00
Travis Long a07a3b7ada
Nimbus: Add EventCount store to persistence layer (#5206)
Co-authored-by: Charlie Humphreys <chumphreys@mozilla.com>
2022-11-04 08:26:21 -05:00
Michelle 2da75a6557
Bug 1798751 - Migrate application-services from AWS to GCP (#5219)
Co-authored-by: Tarik Eshaq <teshaq@mozilla.com>
2022-11-03 18:36:58 -06:00
Charlie Humphreys f1276e45b7
update changelog (#5213) 2022-11-03 15:48:14 -04:00
Ben Dean-Kawamura 0281962039 Cut release v95.0.1 2022-11-03 14:49:02 -04:00
Ben Dean-Kawamura c3683e2e4a Fixed error field name for tabs error
This was renamed as part of the error work, but I mistakenly used the
old name.
2022-11-03 12:11:49 -04:00
Tarik Eshaq 0648c69d7b
Removes db files added by accident (#5211) 2022-11-02 14:33:13 -06:00
Ryan VanderMeulen 0418b43bf8 Bump Android SDK target to 33 2022-11-02 11:28:31 -04:00
Ben Dean-Kawamura 70bece3d2d Documenting the set/unset error reporter functions 2022-11-02 10:39:47 -04:00
Mark Hammond 36d848be1a
Refactor autofill so it doesn't lean as heavily on sync15::Payload (#5192)
We used to convert from sync15::Payload into (eg) AddressPayload, then
finally into InternalAddress as late as possible. We now convert into
the AddressPayload much earlier, so sync15::Payload doesn't bleed as
far into the implementations.

Also deletes `PersistablePayload` as it was just an extra layer
of confusion for no good reason.

Helps on the path to #5139.
2022-11-02 17:11:07 +11:00
Ben Dean-Kawamura 96e9161c0c Added method to unset the error reporter
As part of the UniFFI Desktop callback interface review, we were asked
to provide a way to drop callback interfaces on shutdown to break up
the reference cycles.
2022-11-01 19:45:02 -04:00
Ben Dean-Kawamura e1a7b00e9d Cut release v95.0.0 2022-10-31 11:49:37 -04:00
Charlie Humphreys f37d6d50d6
add behavioral targeting structs (#5205)
* add IntervalData struct
* add interval counters
* add tests and enums
* update from feedback, add event store
* small fix for large rotation case
2022-10-28 17:55:05 -04:00
Ben Dean-Kawamura 75b40c85b2 Revert "Bump charset-normalizer from 2.1.1 to 3.0.0 in /tools"
This is causing CI issues, because it's not compatible with requests
2.28.1.

This reverts commit ae278785fd.
2022-10-28 10:53:28 -04:00
Charlie Humphreys 409de0b33e Replace usages of log::error! with error_support::report_error! in Nimbus 2022-10-27 18:37:46 -04:00
Ben Dean-Kawamura f50d60cbb3 Replaced `log::error!` calls with `error_support::report_error!`
Went through all the main app-services components and replaced the
old-style `log::error!` calls with `error_support::report_error!`.

Removed the `reporting` feature of `error-support` and made it
always-enabled.

Renamed the `report_error` function so that it's name doesn't clash with
the `report_error` macro
2022-10-27 18:37:46 -04:00
Ben Dean-Kawamura d1fdff82f0 Added a README file for the new error handling system
Included our PII warning there and replcaed the duplicate warnings in
each of our components with a note linking to the error_support README.
2022-10-27 18:37:46 -04:00
Ben Dean-Kawamura 2d87160924 Reworked autofill to use the new error system (#5092)
Added a `AutofillApiError` enum with conversions from `Error` and
started using it in the UDL.
2022-10-27 18:37:45 -04:00
Ben Dean-Kawamura 62ca8246d8 Reworked tabs to use the new error system (#5168)
Renamed `TabsError` to `Error` for the same reasons as the logins and
places change.

Added a `TabsApiError` enum with conversions from `Error` and
started using it in the UDL.

Removed the `TabsError::SyncResetError` variant.  That was a pretty
weird one, since it all anyhow errors were converted into it. Only
`sync/engine.rs` used `anyhow::Result`, so we could assume any anyhow
errors were sync errors.  I'm not sure why you could assume it was a
sync reset error though.  In any case, I changed it so functions in
`sync/engine.rs` use the normal `Result` enum, and we convert them to
`anyhow::Result`s only for the `SyncEngine` impl.

Removed the `TabsError::SyncAdapterError` variant when full-sync is not
enabled.  The functions that used that now return top-level `ApiResult`
values and can use `TabsApiError::SyncError`.
2022-10-27 18:37:45 -04:00
Ben Dean-Kawamura 084ec6b8cf Rename `LoginsStorageError` to `LoginsApiError`
I think this name communicates it's purpose better and is more
consistent with other components.

Renamed `LoginsError` to `Error` for the same reasons as the change from
`PlacesError` to `Error`

Changed `logins.udl` to use the fielded error style.  Updated
`LoginsApiError` to use named fields to be compatibile with this.

Removed the `RequestFailed` variant, based on the note next to it.
2022-10-27 18:37:45 -04:00
Ben Dean-Kawamura 01aeb370c3 Further reworked the places errors
- Renamed `PlacesInternalError` to `Error` because it seems more
  idiomatic
- Renamed `PlacesError` to `PlacesApiError` to make it consistent with
  the logins errors.  I considered just calling this `ApiError` but I
  thought that would be confusing for consumers since they won't always
  have the `places::` prefix before the class name.
- Removed `JsonError`, which seems like it was unusped
- Merged `InternalError` into `UnexpectedPlacesException`
- Merged `UrlTooLong` into `UrlParseFailed` for `PlacesApiError`
- Merged `InvalidBookmarkUpdate`, `CannotUpdateRoot`, `InvalidParent`
  into `InvalidBookmarkOperation` for `PlacesApiError`

Use the fielded style for `PlacesApiError` in places.udl.  Updated
`PlacesApiError` to use named fields to be compatible with this.

On swift renamed `PlacesApiError`, which was defined on top of the
normal errors to `PlacesConnectionError`.
2022-10-27 18:37:45 -04:00
Travis Long 37ca186433
Add Enroll/Unenroll Failed events to Nimbus (#5137) 2022-10-26 16:11:09 -05:00
Ryan VanderMeulen bfe80feb55 Update AC and Gradle Protobuf plugin to latest versions 2022-10-25 13:51:56 -04:00