GithubHelp home page GithubHelp logo

defaultreviewers's People

Contributors

atikhono avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

defaultreviewers's Issues

Unique Index Violation Error

Trying to use the plugin and i'm getting error/warning on the log related to plugin writing settings.
Error is a SQL index violation error for plugin settings insert statement.

It appears that this line is causing the error:
pluginSettingsFactory.createSettingsForKey(PLUGIN_KEY).put(pluginSettingsId, newSha);

PR i'm trying this on has multiple commits, if that makes a difference. I also created and deleted PR from this branch multiple times. First few attempts plugin was disabled.
BitBucket Server version 5.7.0

Error log entry:

o.h.e.jdbc.spi.SqlExceptionHelper Unique index or primary key violation: "UQ_PLUG_SETTING_NS_KEY_INDEX_4 ON PUBLIC.PLUGIN_SETTING(KEY_NAME, NAMESPACE) VALUES ( /* key:690 */ 'com.parallels.bitbucket.plugins.defaultreviewers', '112.275', null, null)"; SQL statement:
insert into plugin_setting (key_name, namespace, key_value, id) values (?, ?, ?, ?) [23505-176]

Add Reviewers API causes a lot of comments.

We have a large code base and numerous developers will be associated with each area.

When the plugin runs it creates a new Comment/Activity on the PR for each user that has been added. This can produce a large number of entries in the PR overview that distracts from the user supplied comments.

The PR update api may be more appropriate for bulk adding reviewers.
https://developer.atlassian.com/static/javadoc/bitbucket-server/4.4.1/api/reference/com/atlassian/bitbucket/pull/PullRequestUpdateRequest.Builder.html

Version compatibility query

We recently began testing your plugin, which appeared to install well but then did not function as expected.

After realising that the bitbucket server version we were running wasn't in the supported version list, we upgraded to v5.8.0 (supported).

Unfortunately, we are now in a situation where the default reviewers plugin no longer appears under Repository Settings -> Workflow (Hooks) as it did in the prior (unsupported) bitbucket version.

A response would be appreciated, as we'd very much like to use the plugin - it provides precisely what's needed for our particular repository setup.

Aggregate Reasons for Reviewer addition

When a user is added to the PR as a Reviewer it would be helpful if there was a comment that state the reason the user had been added.

I experimented with adding a comment at the time the user was added but it resulted in a potential swamp of comments.
e.g.
image

Ideally the files associated with the change would be aggregated into one comment or one comment per user and then added so that the PR is not overly cluttered.

Ревьюеры по умолчанию

Добрый день, Анна, извините вероятно на английском я неправильно сформулировал свой вопрос. Я установил и включил ваш плагин на репозитории. В корне этого репозитория создал файл .gitattributes, так же в корне репозитория есть папка Arm_xml, именно для этой папки мне нужно чтобы при пул реквесте затрагивающем эту папку, добавлялся ревьер по умолчанию a.nelzin

OnChange Triggered for Page refresh

The DefaultReviewersHook is triggered for each page refresh in the Bitbucket Web UI even if there has not been any changes made to the PR.

With the DEBUG logging turned on:
curl -u admin:admin -v -X PUT -d "" -H "Content-Type: application/json" http://localhost:7990/bitbucket/rest/api/latest/logs/logger/com.parallels.bitbucket.plugins.defaultreviewers/debug

I see multiple entries in the atlassian-bitbucket.log that shows that the plugin is using git to check each file associated with the PR.

This process will add significant load to the Bitbucket server when large merge PRs are created.

Would it be possible to evaluate the cause of the event and avoid processing the PR if no updates have been made to the associated files.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.