The installation
What is Upsource
Upsource has many useful features as a code review tool.
- Perform efficient code reviews
- From the IDE review
- Track important changes through your browser
- Find design flaws and identify parts of the project that need developer attention
- Test project – wide risk and spread responsibility
- A quick panel for new members to learn about the project and understand the scope of responsibility of others
- @respond, discuss changes, help teammates
- Sync with Continuous Delivery/Issue Tracker/Github
- Don’t worry about the number of team members, team projects, unlimited ~
download
download
The installation
Download and extract to the specified folder
Directory tree
├─ API ├─ apps ├─ Backups# Backup directory├ ─ ─ bin# Application directory├ ─ ─ the conf# Config file├── Exercise Exercises ── Exercise Exercises ── Exercise exercises ── exercises# log├ ─ ─ sonarqube └ ─ ─ temp# Temporary files
Copy the code
Available commands
Position of command
$ ./bin/upsource.sh
# Call help to see the details
Copy the code
Configure: configure Upsource start: run: run on the current command line status: Check the running status stop: stop restart: restart rerun: Rerun on the current command line dump: Output the debug infokill: Kills the upSource process. Java: Manages the Java pathhelp <command> : Displays help informationhelp <command name>
prints usage text for the specified command
Copy the code
Detailed document viewing
So here we run
$ ./bin/upsource.sh start Starting Upsource... * Configuring JetBrains Upsource 2018.1 * Made default base-URL'http://macbook-pro-2.local:8080/' from hostname 'macbook-pro-2.local' and listen port '8080'* JetBrains Upsource 2018.1 Runtime environment is successfully configured * Loading logging configuration from / Users/duoli/Downloads/upsource - 2018.1.357 / lib/ext /logXML * Redirecting JetBrains Upsource 2018.1 logging to / Users/duoli/Downloads/upsource - 2018.1.357 / logs/internal/services/bundleProcess * you Service-Container[bundleProcess] * Configuring Bundle Backend Service * Configuring Configuration Wizard * Starting Service-Container[bundleProcess] * Starting Bundle Backend Service * Starting Configuration Wizard * JetBrains Upsource 2018.1 Configuration Wizard will be available on [http://macbook-pro.local:8080?wizard_token=UwxfxNH1OxGS75l3DO9p] after start Upsource is runningCopy the code
Configuration items
Based on the information displayed on the command line, we open the address http://macbook-pro.local:8080? Wizard_token =UwxfxNH1OxGS75l3DO9p, if on the server
Here we click Set Up to install
Here to configure the access address, if it is external, here the address should be domain name, LAN can be replaced by IP, if it is local can be replaced by localhost, here I replace localhost
Creating an Account Password
Generating an authorization file
To install
Start the startup and log in once the startup is complete
Integrated in the PHPStorm/JetBrains series
I only tested this in PhpStorm, but it is fully supported, although the code part of it may not be fully supported
Configure the code review project
Git is used as version control here
Configuring Basic Information
Configure code integration
The configuration of the other two items is based on your own preferences and will not be described in detail here. So he can initialize the project after we save it.
Once the initialization is complete, you can integrate it into your project.
Install upsource plugin
Settings -> Search Plugin -> Browse Repositories -> Search upSource Install and restart
Related projects
After the restart, search for UpSource in the Settings, and enter the Server Url in the Connection menu as the root directory to access after the installation. Click Test Connection to enter the account and password authorization. After the authorization is successful, we can use it in the project
After the setup is complete, a logo in the lower right corner indicates that the Upsource service has been started
Here we can associate items, switch items, map paths, configure notifications, change users, and more
This allows us to review and identify the code in the IDE. The identity here is synchronized in real time with the data displayed in the UpSource system. And support @someone.
Use and View
So here, the shortcut here is CTRL + Alt + /, so let’s select that line and fill in the review code
Once filled in, a comment icon is displayed next to the IDE line number and in the upper right corner of the edit area. Click to show what you want to change and highlight the specified area
There will also be a project on the platform
Here are a few tricks
Support @ to designate people
Support for label labeling
All right, let’s try it out on the team…
other
Error: Unable to save data to database
Updating project : An error occurred during flushing data to database upsource
The memory must be at least 8GB, otherwise the error will be reported.
Error: The user does not see the project
Generally speaking, the user is not added to the project.
Refer to the article
- How to make code review more efficient
Features: Supports custom tags
These tags can be synchronized to the IDE.
Features: Multi-user accounts can be managed by a single user
For example, a user has multiple Git Global identifiers, which may be nicknames of users from different periods. In this case, it can be identified as one account, which is easier to manage