Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Issue 1282103003: fix inconsistent firing of events for extension fields (Closed)

Created:
5 years, 4 months ago by skybrian
Modified:
5 years, 4 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dart-protobuf.git@fieldtype
Target Ref:
refs/heads/master
Visibility:
Public.

Description

fix inconsistent firing of events for extension fields Before we would fire events for some extension field mutations but not others. Change it to fire no events for these fields for now. (Using _setField consistently should make it easier to send events later if we decide to do that.) Also, remove the optional third argument to setField(). It shouldn't be part of the public API since it can be used to defeat field validation. BUG= R=sgjesse@google.com Committed: https://github.com/dart-lang/protobuf/commit/4d5fe5cd48e36d31a5dadb0ad83f5050e310383a

Patch Set 1 #

Patch Set 2 : tweak a comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -60 lines) Patch
M lib/src/protobuf/event_plugin.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M lib/src/protobuf/generated_message.dart View 16 chunks +74 lines, -53 lines 2 comments Download
M lib/src/protobuf/mixins/map_mixin.dart View 1 chunk +1 line, -1 line 0 comments Download
M lib/src/protobuf/readonly_message.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/event_test.dart View 4 chunks +57 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
skybrian
Depends on https://chromiumcodereview.appspot.com/1277863003/
5 years, 4 months ago (2015-08-08 02:23:17 UTC) #2
Søren Gjesse
lgtm https://chromiumcodereview.appspot.com/1282103003/diff/20001/lib/src/protobuf/generated_message.dart File lib/src/protobuf/generated_message.dart (right): https://chromiumcodereview.appspot.com/1282103003/diff/20001/lib/src/protobuf/generated_message.dart#newcode948 lib/src/protobuf/generated_message.dart:948: void setField(int tagNumber, value) { This is a ...
5 years, 4 months ago (2015-08-10 13:37:19 UTC) #3
skybrian
Committed patchset #2 (id:20001) manually as 4d5fe5cd48e36d31a5dadb0ad83f5050e310383a (presubmit successful).
5 years, 4 months ago (2015-08-10 18:25:13 UTC) #4
skybrian
5 years, 4 months ago (2015-08-10 18:26:12 UTC) #5
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/1282103003/diff/20001/lib/src/protobuf...
File lib/src/protobuf/generated_message.dart (right):

https://chromiumcodereview.appspot.com/1282103003/diff/20001/lib/src/protobuf...
lib/src/protobuf/generated_message.dart:948: void setField(int tagNumber, value)
{
On 2015/08/10 13:37:19, Søren Gjesse wrote:
> This is a breaking change. Is the pubspec.yaml updated with a new version?
Maybe
> add information to the CHANGELOG.

Updated CHANGELOG. I will bump the version number before release.

Powered by Google App Engine
This is Rietveld 408576698