Commit Graph

333 Commits

Author SHA1 Message Date
Ian Wienand 234ed85a92 Retire repo
Change-Id: I7d68f82c75cbc4dc7e843198593846e19cf88f14
2022-04-05 13:20:00 +10:00
James E. Blair e707725ee6 Hack out some CLA bits.
Replace the link to the settings/agreements page in the git push error
message with a hardcoded link to the OpenStack wiki.

Remove the form widgets that permit agreeing to a CLA.

Change-Id: Ibfbb8bec245ae494a49cb905925fd2c4f34686f2
2012-01-06 11:21:08 -08:00
Monty Taylor d0fa8866d4 Reject commit subjects over 50 characters.
Add a test in receive commits for commit message first lines of over 50
characters and a boolean config option to enable checking for it.

Change-Id: I557d1ff72e6df97b991b05c36483c13873b706fb
2011-11-08 14:26:40 -08:00
James E. Blair 1e35b2096f Add OpenID SSO support. Configuring OPENID_SSO in gerrit.config
will allow the admin to specify an SSO entry point URL so that
users clicking on "Sign In" are sent directly to that URL.
2011-07-22 23:27:06 +00:00
Shawn O. Pearce 080a51f4e6 Merge branch 'stable'
* stable:
  Fix ChangeDetailFactory's invocation of PatchSetDetailFactory
  Release notes for 2.1.7.1
  Fix API breakage on ChangeDetailService
  Do not reset Patch History selection on navigation to next file diff
  Resolve Project Owners when checking access right on any ref

Conflicts:
	gerrit-server/src/main/java/com/google/gerrit/server/project/ProjectControl.java
	gerrit-server/src/test/java/com/google/gerrit/server/project/RefControlTest.java

Change-Id: I6e956625cb4648df35035b9be2d32e6e431fb8f3
2011-06-07 13:44:39 -07:00
Shawn O. Pearce e313242c05 Fix API breakage on ChangeDetailService
The Mylyn Reviews project pointed out Gerrit changed the API
signature of a JSON method they use remotely. Fix the API back to the
original signature, and define a new method with the extra arguments.

Change-Id: I51cbbdd64bdb72a666a6b5266db3b93494b75182
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-06-07 10:10:39 -07:00
Raviteja Sunkara 3ec87fa1be Add ExpandAllComments checkbox in PatchScreen
Change-Id: I2bc786285940655d17c498ec6abbe8dfe8e5e974
2011-06-06 12:13:41 +05:30
Edwin Kempin c82e9e98b6 Do not reset Patch History selection on navigation to next file diff
When the user views a file diff and then changes in the Patch History
the selection of side A (left side), then this selection is lost when
the user navigates to the previous or next file diff. The selection of
side A is always reset to the patch set that is selected as 'Old
Version History' on the ChangeScreen (the base for comparing patch
sets).

This change ensures that the selection in the Patch History is kept
when the user navigates to the previous or next file diff.

Bug: issue 999
Change-Id: I19cafedd8a11683dca4a24fbebbcacf63425fe62
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2011-06-03 13:35:12 +02:00
Shawn O. Pearce 4e67700dab Change version to 2.2-SNAPSHOT
Change-Id: I1d3e6c42bc678536162a81d2b13372659a1c3dec
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-31 10:30:57 -07:00
Shawn O. Pearce 0bfcc2181c Merge branch 'stable'
* stable:
  Support different color pallete when not signed in
  Send new patchset event after its available
  Enable git:// download URLs if canonicalGitUrl set
  Fix NPE on Gerrit startup if mail.from doesn't include a name
  Add config setting to only suggest users which are in a visible group

Change-Id: I2bc9ca40e616c7f7b0c12de41f631c916439289c
2011-05-20 11:43:43 -07:00
Shawn O. Pearce a83bb1c344 Support different color pallete when not signed in
If the user is not signed in a different theme of colors can be
applied to the UI, making it more obvious that login is necessary.

Bug: issue 913
Change-Id: Id8c780042740b3b93dcee7ed84b3f9f6be06d9de
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-20 09:45:27 -07:00
Shawn O. Pearce 70d336d49b Enable git:// download URLs if canonicalGitUrl set
If the administrator has set gerrit.canonicalGitUrl but has left the
download.scheme variable unset to its default, assume they want to use
git:// as a type of download and enable it.

Bug: issue 966
Change-Id: I8f6d5c5a3d16821d07c61f16bce9680a7e0721e5
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-20 07:05:31 -07:00
Shawn O. Pearce cb115b6d24 Fix unused import/code warnings
Change-Id: Icb4968bfc340333ee613cfe3dfe01d3de49358d4
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-19 17:33:37 -07:00
Edwin Kempin eb077023ad Make access panel read-only when it opens
The access panel should be read-only when it opens, even if the user
has write permission. If the access panel is in read-only mode the
overview is better since the UI does not contain the controls for
editing the access rights. For users that have the permission to edit
the access rights there is an 'Edit' button to switch the access
panel into edit mode.

Bug: issue 956
Change-Id: I04b1072750455932779e95a0f7424b8fd4198901
Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2011-05-19 17:12:24 -07:00
Shawn O. Pearce 08ad16693e New ProjectAccessScreen to edit access controls
Change-Id: Ica21a1b3bb8b3b1f3e2e4f4964f25f9c8a1741be
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-19 16:53:04 -07:00
Shawn O. Pearce 6a765190df Move "ref_rights" table into Git
Permissions are stored in the project.config file within the
refs/meta/config branch of each project.  This makes the rules
more flexible in the future, as well as adds version control.

For example:

  [access "refs/*"]
    owner = group tools-owners

  [access "refs/heads/*"]
    label-Verified = -1..+1 group tools-dev
    label-Verified = -1..+1 group tools-owners
    label-Code-Review = -2..+2 group tools-owners
    submit = group tools-dev
    submit = group tools-owners

  [access "refs/heads/stable"]
    exclusiveGroupPermissions = read create push
    read = group Anonymous Users
    push = group tools-repo-maintainer

To enable easy remote editing of the configuration rules, the
following access block is added by default to -- All Projects --
and is thus inherited throughout the entire site:

  [access "refs/meta/config"]
    read = group Project Owners
    push = group Project Owners

This configuration section permits any project owner or site
administrator (as they are indirectly always a project owner of
any project) to push changes to the project.config file within
the refs/meta/config branch, updating access (and other project
information) remotely without using the web UI.

Change-Id: Idb56f657a4bf88108ad40bbb19d831e6806b68c5
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-19 16:53:03 -07:00
Shawn O. Pearce 83f6cc14af Temporarily remove ProjectAccessScreen
The ref_rights table is about to change its entire data model to
something stored in Git, and which uses a different layout in-memory
and on-disk than the old RefRight object.  Dropping the old web UI
before making the internal API changes reduces the amount of code that
is being modified at once.  A new UI will be built from scratch to
support the new data model more accurately than the old simple table
layout could do.

Change-Id: Idfdebc712b1241a81346084037bc5f6aeab6e42a
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-19 16:53:03 -07:00
Shawn O. Pearce b052ca8dcf Fix unused and deprecation warnings
Despite our best efforts to resolve warnings, some new ones slipped in
late this afternoon.

Change-Id: I4b8f8bba08de2d5c7a2a03c04d121c0e447bfa8e
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-19 16:52:03 -07:00
Shawn Pearce 98f1ecfeae Merge "Adds a "revert change"-button to a submitted patchset." into stable 2011-05-19 16:44:12 -07:00
Shawn O. Pearce 4fdb29c14b Fix assertion caused by early key-rebinding in ChangeScreen
Keys cannot be registered until the prior screen has dropped its key
bindings.  Move the activation of the current patch set into the
registerKeys() routine of ChangeScreen, where its legal to register
(or re-register) the key bindings.

Change-Id: I24bba5a09bd9f1452e01bdb5685e2b332aa51106
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-19 16:32:15 -07:00
monica.dionisio 237174c276 Implement web interface for patches diff
Support diff between patches in the change screen. Allow changing
patches base comparison.

All displayed patches can now have their files listed and compared
to target branch or to a specific patch of the change.

Bug issue: 194
Change-Id: I617cbe647338b8a4fb71788f04ab6e2c952780fc
2011-05-19 16:32:15 -07:00
monica.dionisio 283a13df29 Support diff between patch sets
Pass through arguments for diff between patch sets

Modify internal APIs to pass through the old, new and preferences
needed to compute the differences between two patch sets for the
UI.

Bug: issue 194
Change-Id: I98827bf88227e912860769f22cd90f5c35b784b0
2011-05-19 16:00:18 -07:00
Gustaf Lundh 262629e6d3 Adds a "revert change"-button to a submitted patchset.
Change-Id: I409e656c88a7021f604c021ca3987d2e917c18d9
2011-05-19 14:23:03 -07:00
Shawn Pearce 7007a5d8a0 Merge "Go back to change screen if 'Publish and Submit' fails on submit" into stable 2011-05-19 10:12:30 -07:00
Edwin Kempin abb9159382 Go back to change screen if 'Publish and Submit' fails on submit
The 'Publish and Submit' action is not atomic. This means if the
submit fails the comments and approvals will still be published.
If the screen stays with the PublishCommentScreen on submit failure
there is no indication for the user that the comments and approvals
were actually published. To make this more obvious we now go back to
the change screen before displaying the submit error. On the change
screen the user can then see that the comments and approvals were
successfully published.

Bug: issue 963
Change-Id: I9fcfd6b89b53db6f672d79714c6942fa953e5dd9
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2011-05-19 18:59:55 +02:00
Shawn O. Pearce 19a39e3884 Fix GWT DeferredCommand deprecations
Move to the new Scheduler API. It hasn't been deprecated yet.

Change-Id: Icfe5d6a53f362a97e798afae9f8eb984b13e8ae5
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-19 09:58:36 -07:00
Shawn O. Pearce 46cc31adcd Fix SuggestBox related deprecation warnings
We always use the DefaultSuggestionDisplay so its reasonable to
perform the downcast here to that type in order to control the
UI as we want it to behave.

Change-Id: Id48fdaf59ece74abe67773c800f23c3b8312ff3c
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-19 09:58:36 -07:00
Shawn O. Pearce bd8e5c1e8b Fix more rawtype warnings
Change-Id: I50e401a7a604dde7bfad63639bdadb29c2b8a4a9
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-19 09:58:35 -07:00
Nasser Grainawi 982e5972cb Use DateTimeFormat getFormat with predefinedFormat
The get*TimeFormat functions were deprecated, replace with getFormat and
specific predefinedFormat fields.

Change-Id: Ib2e7a44b75f3d8dcaf2d683466cefd310de126bd
2011-05-19 08:06:40 -07:00
Nasser Grainawi 79548f158c Replace encodeComponent and decodeComponent
Use the deprecation replacements encodeQueryString and decodeQueryString.

Change-Id: Ib3cf73741b6d3430e9348338204ab3ff07908de9
2011-05-19 08:06:40 -07:00
Nasser Grainawi aa9a7a92ce Replace isChecked and setChecked
Use deprecation replacements getValue and setValue.

Change-Id: I30c4d9a98c060c41fd1a4f8a68bf41fea7a04c1a
2011-05-19 08:06:40 -07:00
Nasser Grainawi 8bc0d7d481 Remove dead code and unused variables
Change-Id: If87f7ad452ce597c82872b36a76f32afcc6ab7fd
2011-05-19 08:06:39 -07:00
Nasser Grainawi c7a1d91dd7 Remove unused imports
Change-Id: Ib51584840b6703a14554cc5b3e0aa890fe46234e
2011-05-19 08:05:36 -07:00
Nasser Grainawi 4f066809b5 Add parent info to each ChangeScreen PatchSetBlock
Parent commit id and short message is placed in a Grid that expands
vertically when a patch set has more than one parent. The text
"Initial Commit" is used when a patch set has no parents.

Change-Id: I5775e8e09b506d9a97d0303e0ba150a926a091e8
2011-05-19 07:45:00 -07:00
Edwin Kempin 3fa44a2f6f Re-enable form if 'Publish and Submit' fails to submit
If submit fails when a user presses 'Publish and Submit' in the
PublishCommentsScreen the form stays disabled so that now it's not
possible to publish the voting and the comments without submitting
(because the 'Publish' button is disabled). Now it's also not
possible to copy a typed in summary comment to the clipboard.

This change ensures that the form gets re-enabled if the submit
fails.

Change-Id: I75a0c55e98d064c4b64eaa78dac30ac202bf411f
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2011-05-19 01:02:14 +02:00
Edwin Kempin 676d5b3d73 Make sure that ENTER works in all text fields
There is a bug in gwt 2.1.0 [1] that prevents that pressing the ENTER
key is properly recognized and so actions that are connected with
pressing ENTER are not triggered.

Examples:
- confirming a query in the query input field with ENTER does not
  trigger the query
- confirming the login information in the UserPassSignInDialog with
  ENTER does not trigger the login
- confirming to add a reviewer in the ChangeScreen with ENTER does
  not add the reviewer

This problem only affects some browsers (e.g. Firefox, older versions
of Google Chrome).

The new code was tested with Google Chrome 11.0.696.68,
Firefox 3.6.17, Firefox 4.0.1 and Internet Explorer 8.0.7600.1685.

[1] http://code.google.com/p/google-web-toolkit/issues/detail?id=5558

Bug: issue 946
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Change-Id: Ia61ba2fbd150e1c587d7c40252d500e28a99711b
2011-05-18 20:25:06 +02:00
Nasser Grainawi 0908bff975 Create profiles for fast single-browser builds
Support fast dev cycle through maven profiles that build GWT for specific
browser user agents.

To build for only webkit based browsers you can now do:
mvn package -Psafari

Change-Id: I1d7ca64413cb6e2d937e2a3a09f53bf1a9e2ffbc
2011-05-17 14:16:57 -07:00
Shawn O. Pearce 459cd620c4 Remove the SSH key loading applet
Java applets are disappearing on the web; many browsers disable them
by default either by browser vendor choice, operating system developer
choice, or local corporate policy.

Strip this code out so we don't need to maintain it.

Change-Id: Ib28506aedeb684c76d948cf14025e9cb630892ea
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-05-01 20:04:35 -07:00
Shawn O. Pearce 32ff4da917 Fix Maven warning about antrun in gerrit-gwtui
Future versions of Maven may not support declaring the same plugin
twice within the build element.  Move the two executions together into
one plugin.

Change-Id: I95eab0131203e45810bb7cf15e17d7e54598c519
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-04-22 08:29:50 -07:00
Shawn Pearce ede3a8358b Merge "Refactor AbandonChangeDialog and RestoreChangeDialog classes." 2011-04-21 10:06:19 -07:00
Shawn Pearce 36e6ff6d07 Merge "Disable all controls in group screen if user can't modify the group" 2011-04-21 09:55:54 -07:00
Shawn Pearce b2bc916f47 Merge "Fix Show Inherited Rights behavior on refrights table reload" 2011-04-21 09:50:35 -07:00
Shawn O. Pearce 76ad93ee69 Always display button text in black
If the default text color is made to be a light color, the buttons
aren't readable because the browser default background for the button
will also usually be a light color.

Bug: 915
Change-Id: Ic26ace7f678f1bf6f273302aa25c68f55398365b
Signed-off-by: Shawn O. Pearce <sop@google.com>
2011-04-21 09:28:20 -07:00
Raviteja Sunkara 4d9205a488 Refactor AbandonChangeDialog and RestoreChangeDialog classes.
Change-Id: Ibc4ede4d5c5deb4b743828cfdc690871518354ab
2011-04-15 12:23:29 +05:30
Edwin Kempin 02d163bb9e Disable all controls in group screen if user can't modify the group
Change-Id: I8778ba475c03205d6666c035b3c551b7cbc3a186
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2011-04-15 08:34:33 +02:00
Martin Fick a9d1575535 Fix Show Inherited Rights behavior on refrights table reload
Make the "Show Inherited Rights" checkbox mechanism on the
project access screen, cause inherited rights to also be
hidden when a refright is added and the refrights table is
reloaded.

Change-Id: I4691750ffce4616b53bb57e3a06857d294dde972
2011-04-14 15:48:23 -06:00
Shawn Pearce 463427a371 Merge "Add an emailOnlyAuthors property to AccountGroups" 2011-04-11 12:23:25 -07:00
Raviteja Sunkara 547e8e8ebf Enhance UpToChange link to activate the last browsed patchset.
While returning to the Change using "UpToChange" link in any
patchset, always the latest patchset is activated. This commit
modifies the functionality of the "UpToChange" link by storing
the last browsed patchset and activating it on return. This
makes it easy to review older patchsets.

Bug: issue 822
Change-Id: Iaf01c53797d92434a0bc150f73ad232aec3619d6
2011-04-11 15:10:00 -04:00
Matt Fischer 620255aef7 Added support for included groups
This change adds a new item to the group configuration: a list of
groups whose members should be included in this one.  This makes it
possible to set up a hierarchy of included groups, which can make it
easier to maintain complex access control lists.

To accomplish this, two new database tables were added,
called AccountGroupIncludes and AccountGroupIncludesAudit.
The relevant support code was added around them, largely based on
the existing code for handling indivdual account membership.  In
addition, caches for group information were added, paralleling the
caches that already exist for accounts.

Change-Id: Ib6990c17739f28f38bc13961143db7ce79251567
2011-04-11 15:02:15 -04:00
Martin Fick a5678270a4 Add an emailOnlyAuthors property to AccountGroups
When this property is set on a group, actions and
comments from members of this group will only cause
emails to be sent to change authors.  This is
particularly useful to quiet actions from automation
users.

Change-Id: Ibcde6e07045ec00d095028c86e8dd47cef3cf582
2011-04-11 09:58:28 -06:00