Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add external actvities feature #626

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c2856aa
Add settings for external activities and exported flag in fact
gsobczyk Jul 15, 2020
42c541d
Update .gitignore (pycharm files)
gsobczyk Jul 19, 2020
6893ea5
Get external activities from Jira
gsobczyk Jul 19, 2020
4c6fd6e
Add export feature from overview window
gsobczyk Jul 22, 2020
90d18f5
Mark cloned activitity as not exported
gsobczyk Jul 23, 2020
c598b4a
Export activities to external source via dbus
gsobczyk Jul 26, 2020
8a8a321
Change external activity name format
gsobczyk Jul 27, 2020
46e00cd
Remove local TODO list for external activities
gsobczyk Jul 27, 2020
ffd2495
Better error messages for external activities
gsobczyk Aug 3, 2020
0668b1e
Changed export label on edit activity
gsobczyk Aug 3, 2020
90e8cf6
Add external format to exporter (CLI)
gsobczyk Aug 3, 2020
fea02f6
Add polish translations
gsobczyk Aug 3, 2020
22faf25
Added more logging info when exporting activities
gsobczyk Aug 29, 2020
1c4a968
README actualization despite problems with jira on Ubuntu 18.4
gsobczyk Sep 4, 2020
5ec698b
Merge remote-tracking branch 'upstream/master' into add-external-actv…
gsobczyk Sep 30, 2020
e9813b6
- ignore case suggest
gsobczyk Sep 30, 2020
a607108
load external activities to suggest
gsobczyk Oct 1, 2020
6bcc9e8
import urllib only when jira library is present
gsobczyk Oct 1, 2020
67153aa
change default size of edit activity window (from 600px to 1000px width)
gsobczyk Oct 1, 2020
028d698
change max suggestions to 10 (instead of 7)
gsobczyk Oct 1, 2020
b6f9214
remove dummy separator from external.py
gsobczyk Oct 1, 2020
25a9023
searching and higlihting suggestions for multiple words
gsobczyk Oct 1, 2020
4aed0fc
fill suggestions for external activities after 1sek (in background)
gsobczyk Oct 1, 2020
03bb263
- refreshing visible suggestions after storage returns them
gsobczyk Oct 1, 2020
a1c932a
replace hamster special characters in issue summary to valid ones
gsobczyk Oct 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
PACKAGES="$PACKAGES python${{matrix.python-version}}"
# Normal dependencies
PACKAGES="$PACKAGES gettext intltool python3-gi python3-cairo python3-dbus python3-xdg libglib2.0-dev libglib2.0-bin gir1.2-gtk-3.0"
# Jira dependencies (optional, python3-jira doesn't exists in ubuntu 16)
# PACKAGES="$PACKAGES python3-jira python3-urllib3"
# The gtk-update-icon-cache used to live in libgtk2.0-bin,
# but was moved to its own package. Similar for distutils
# (included by default in python stdlib).
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ hamster-time-tracker-*.tar.gz
.lock-waf*
build
*.deb
.project
.pydevproject
venv/
.idea/
*.iml
10 changes: 10 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## Changes in 3.1.0

* Added new shortcuts:
- Ctrl-=: clone or fallback to new if none selected.
- e: edit selected activity
- x: toggle export flag
* Gathering activities from external source (right now only Jira and only via dbus)
* Export activities as worklogs to jira
* Export activities to external source from command line (`hamster export external` command)

## Changes in 3.0.2

* Switch from deprecated xml2po to itstool for translating help files
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,25 @@ commands). Older versions are not supported.

```bash
sudo apt install gettext intltool python3-gi python3-cairo python3-distutils python3-dbus python3-xdg libglib2.0-dev libglib2.0-bin gir1.2-gtk-3.0 gtk-update-icon-cache
# and for exporting issues
sudo apt install python-tz
# and for documentation
sudo apt install itstool yelp
# and for jira integration (should be python3-jira>=2.0.0, if not - use pip)
sudo apt install python3-jira python3-urllib3
```

##### openSUSE

Leap-15.0 and Leap-15.1:
```bash
sudo zypper install intltool python3-pyxdg python3-cairo python3-gobject-Gdk
# and for exporting issues
sudo zypper install python-tz
# and for documentation
sudo zypper install itstool yelp
# and for jira integration (should be python3-jira>=2.0.0, if not - use pip)
sudo zypper install python3-jira python3-urllib3
```

##### RPM-based
Expand Down
81 changes: 63 additions & 18 deletions data/edit_activity.ui
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.4 -->
<!-- Generated with glade 3.22.2 -->
<interface>
<requires lib="gtk+" version="3.10"/>
<object class="GtkEntryCompletion" id="activity completion">
Expand All @@ -18,6 +18,9 @@
<property name="has_resize_grip">True</property>
<signal name="delete-event" handler="on_close" swapped="no"/>
<signal name="key-press-event" handler="on_window_key_pressed" swapped="no"/>
<child type="titlebar">
<placeholder/>
</child>
<child>
<object class="GtkBox" id="main vbox">
<property name="visible">True</property>
Expand Down Expand Up @@ -431,29 +434,71 @@
</packing>
</child>
<child>
<object class="GtkBox" id="tags box">
<object class="GtkPaned">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="can_focus">True</property>
<child>
<object class="GtkLabel">
<object class="GtkBox" id="tags box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">tags</property>
<attributes>
<attribute name="style" value="italic"/>
<attribute name="weight" value="bold"/>
</attributes>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">tags</property>
<attributes>
<attribute name="style" value="italic"/>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
<property name="resize">False</property>
<property name="shrink">True</property>
</packing>
</child>
<child>
<placeholder/>
<object class="GtkBox" id="exported box">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">3</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">exported to external source</property>
<attributes>
<attribute name="style" value="italic"/>
<attribute name="weight" value="bold"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="resize">False</property>
<property name="shrink">True</property>
</packing>
</child>
</object>
<packing>
Expand Down Expand Up @@ -531,10 +576,10 @@
<property name="position">6</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
<child type="titlebar">
<placeholder/>
</child>
</object>
</interface>
27 changes: 27 additions & 0 deletions data/org.gnome.hamster.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,33 @@
The folder the last report was saved to
</description>
</key>
<key type="s" name="activities-source">
<default>""</default>
<summary>Activities source</summary>
<description>
The source of activities
</description>
</key>
<key type="s" name="jira-url">
<default>"https://jira.unity.pl"</default>
<summary>Jira URL</summary>
</key>
<key type="s" name="jira-user">
<default>""</default>
<summary>Jira user</summary>
</key>
<key type="s" name="jira-pass">
<default>""</default>
<summary>Jira password</summary>
</key>
<key type="s" name="jira-query">
<default>"resolution = Unresolved AND assignee = currentUser()"</default>
<summary>Jira query</summary>
</key>
<key type="s" name="jira-category-field">
<default>"customfield_10000"</default>
<summary>Jira category field</summary>
</key>

<key type="u" name="day-start-minutes">
<default>330</default>
Expand Down
Loading