Issues

Issue #7918 open

REST API: Changeset Participants change when using RawNode vs Node (BB-9090)

thedillonb
created an issue

Depending on which Node hash you use to designate a changeset, the 'approval' status change on the participants. For example, an event structure provides a "Node" attribute (b88f296c63eb6c98bfdc2c2f44626b26). Attempting to get the participants of the changeset for (https://bitbucket.org/api/1.0/repositories/dillonbuchananinc/testrepository/changesets/b88f296c63eb6c98bfdc2c2f44626b26/participants) yields:

[{"username": "thedillonb", "first_name": "Dillon", "last_name": "", "display_name": "thedillonb", "last_updated_on": "2013-03-16 20:50:52+00:00", "is_team": false, "avatar": "https://secure.gravatar.com/avatar/5ce4051edf2dd7a41c0d9f438f869b1a?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F20bb7d758557%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32", "unmapped": false, "approved": false}]

However, using the "RawNode" which is a longer changeset hash (b88f296c63eb6c98bfdc2c2f44626b26222df21c) via it's API call: https://bitbucket.org/api/1.0/repositories/dillonbuchananinc/testrepository/changesets/b88f296c63eb6c98bfdc2c2f44626b26222df21c/participants yields:

[{"username": "thedillonb", "first_name": "Dillon", "last_name": "", "display_name": "thedillonb", "last_updated_on": "2013-08-12 03:32:49+00:00", "is_team": false, "avatar": "https://secure.gravatar.com/avatar/5ce4051edf2dd7a41c0d9f438f869b1a?d=https%3A%2F%2Fd3oaxc4q5k2d6q.cloudfront.net%2Fm%2F20bb7d758557%2Fimg%2Fdefault_avatar%2F32%2Fuser_blue.png&s=32", "unmapped": false, "approved": true}]

The approval status has changed but both node's point to the same changeset.

Comments (1)

  1. Log in to comment