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 GSoC report link for completed tasks #714

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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: 1 addition & 1 deletion _projects/antlr-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ desc: "This project is about integrating ANTLR into the coala bear API. "
difficulty: high
initiatives:
- GSoC
- RGSoC
issues: []
markdown: antlr-v4.md
mentors:
- Udayan12167
- corona10
- aptrishu
name: "Integrate ANTLR v4 into coala"
improved_title: "Integrate ANTLR v4 to coala"
requirements:
- "The participant should have one patch to [coala](https://github.com/coala/coala) accepted."
- "Being familiar with the current Bear API and what it provides."
Expand Down
4 changes: 2 additions & 2 deletions _projects/aspects.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ difficulty: high
status: completed
initiatives:
- GSoC
- RGSoC
issues: []
markdown: implement-aspects.md
markdown: aspects.md
mentors:
- userzimmermann
- jayvdb
- myint
name: "Implement Aspects Support"
improved_title: "Implement Aspect"
requirements:
- "The participant should have one patch to any bear accepted."
- "The participant should have one patch to the coala core accepted."
Expand Down
1 change: 1 addition & 0 deletions _projects/automate-vulture-whitelist.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: "Automate Whitelist creation for vulture"
improved_title: "Improve Whitelisting Infrastructure for Vulture"
collaborating_projects:
- coala
- vulture
Expand Down
1 change: 1 addition & 0 deletions _projects/commit-content-checks.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: "Commit content inspection"
improved_title: "Git Commit Content Inspection"
desc: "Verification that the commit message accurately describes the patch"
requirements:
- "Merged pull requests to a vcs bear, e.g. GitCommitBear."
Expand Down
1 change: 1 addition & 0 deletions _projects/corobo-enhancement.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ mentors:
- gbin
- mixih
name: "corobo enhancements(security, configurability and tests)"
improved_title: "Corobo Enhancement - Security, Testing And Configurability"
requirements:
- "At least one patch to corobo should be accepted and merged."
status: completed
Expand Down
2 changes: 1 addition & 1 deletion _projects/gitmate-gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ difficulty: medium
status: completed
initiatives:
- GSoC
- RGSoC
issues:
- "https://gitlab.com/coala/GSoC/GSoC-2017/issues/6"
- "https://gitlab.com/coala/GSoC/GSoC-2017/issues/26"
Expand Down Expand Up @@ -39,6 +38,7 @@ mentors:
- seblat
- fneu
name: "Implement GitLab and Bitbucket Support for GitMate"
improved_title: "Extending GitMatev2.0 to support GitLab and Bitbucket"
requirements:
- "The participant should have one patch to [GitMate-2](https://gitlab.com/gitmate/gitmate-2) accepted."
- "Django knowledge is a big plus."
Expand Down
1 change: 1 addition & 0 deletions _projects/gitmate-plugins.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: "Implement GitMate Plugins for coala"
improved_title: "Implement GitMate automations and plugins for coala"
desc: "GitMate.io helps by automating tasks on GitHub and GitLab. There are new
plugins that are specific to coala that should be implemented. "
requirements:
Expand Down
1 change: 1 addition & 0 deletions _projects/go-bears-on-bsd.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mentors:
- xferra
- yukiisbored
name: "Linter Dependency Management from a Bare-Metal System"
improved_title: "Go Bears on BSD"
requirements:
- "At least one patch to the coala core should be accepted and merged."
- "The proposal needs to show familiarity with coala's dependency management implementation."
Expand Down
2 changes: 1 addition & 1 deletion _projects/optimize-caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ desc: "Improve coala's caching and IO for the NextGen-Core"
difficulty: medium
initiatives:
- GSoC
- RGSoC
issues:
- "https://github.com/coala/coala/issues/3530"
- "https://github.com/coala/coala/issues/2912"
Expand All @@ -17,6 +16,7 @@ mentors:
- shreyans800755
- fneu
name: "Optimize Caching"
improved_title: "Optimize Caching for the NextGen-Core"
requirements:
- "At least one patch to the coala core should be accepted and merged."
- "The student should be familiar with ongoing technical cEPs especially
Expand Down
2 changes: 1 addition & 1 deletion _projects/vulture.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ difficulty: medium
status: completed
initiatives:
- GSoC
- RGSoC
issues: []
markdown: vulture.md
mentors:
- jendrikseipp
name: "Vulture dead code removal"
improved_title: "Removing dead code with Vulture"
requirements:
- "The participant should have one patch to [vulture](https://github.com/jendrikseipp/vulture) accepted."
- "Being familiar with the current Bear API and what it provides. Fixing an
Expand Down
1 change: 1 addition & 0 deletions data/projects.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{% for post in site.projects %}
{
"name" : "{{ post.name }}",
"title" : "{{ post.improved_title }}",
"desc" : "{{ post.desc }}",
"requirements" : [{% for req in post.requirements %}"{{ req }}"{% unless forloop.last %},{% endunless %}
{% endfor %}],
Expand Down
13 changes: 13 additions & 0 deletions data/reports.liquid
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
---
[
{% for report in site.reports %}
{
"categories": [{% for category in report.categories %}"{{ category }}"{% unless forloop.last %},{% endunless %}{% endfor %}],
"date": "{{ report.date }}",
"student": "{{ report.student }}",
"project": "{{ report.project }}",
"project_link": "{{ report.project_link }}",
"url": "{{ report.url }}"
}{% unless forloop.last %},{% endunless %}{% endfor %}
]
6 changes: 5 additions & 1 deletion partials/tabs/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,13 @@ <h6><b>Filter Projects</b></h6>
<li btf-markdown="req" class="milestones" ng-repeat="req in currentProject.requirements"></li>
</ul>
<br> </div>
<div ng-show="currentProject.initiatives.length>0">
<div ng-show="currentProject.initiatives.length>0 && currentProject.report === undefined">
<div class="small-heading uppercase">Initiatives</div> <span class="chip" ng-repeat="initiative in currentProject.initiatives">{{ initiative }}</span>
<br> </div>
<div ng-show="currentProject.report.url.length>0">
<div class="small-heading uppercase">{{ currentProject.report.initiative }}</div>
<span class="chip gsoc-report" ng-click="redirectToReport()">Report</span>
</div>
<div ng-show="currentProject.collaborating_projects.length>0">
<div class="small-heading uppercase">Collaborating projects</div> <span class="pr-element-detail chip" ng-repeat="project in currentProject.collaborating_projects">{{ project }}</span>
<br> </div>
Expand Down
3 changes: 3 additions & 0 deletions resources/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
.evenly-spread-content {
justify-content: space-evenly;
}
.gsoc-report {
cursor: pointer;
}
.hash_value_dup {
position: 'absolute';
left: '-9999px';
Expand Down
33 changes: 32 additions & 1 deletion resources/js/directives/projects.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
angular.module('coala')
.directive('projects', ['$http', '$timeout', '$location', 'Languages', 'orderByFilter', function ($http, $timeout, $location, Languages, orderBy) {
.directive('projects', ['$http', '$timeout', '$location', '$window', 'Languages', 'orderByFilter', function ($http, $timeout, $location, $window, Languages, orderBy) {
return {
restrict: 'E',
templateUrl: '/partials/tabs/projects.html',
Expand Down Expand Up @@ -221,6 +221,7 @@ angular.module('coala')
$scope.projectList = res.data;
$scope.allProjects = res.data;
$scope.projectRequest();
$scope.mapReportToProject();
})
}

Expand Down Expand Up @@ -397,6 +398,36 @@ angular.module('coala')
}

$scope.getAllFilters();
$scope.redirectToReport = function () {
$window.open($scope.currentProject.report.url, '_blank');
}

$scope.mapReportToProject = function () {
$http.get('data/reports.liquid')
.then(function (res) {
var completedProjects = []
angular.forEach($scope.projectList, function(project){
if (project.status.includes('completed') && project.mentors.length > 0) {
completedProjects.push(project)
}
})
angular.forEach(res.data, function (report) {
var completed_project = report.project.toLowerCase()
angular.forEach(completedProjects, function (project) {
var project_title = project.title.length > 0 ? project.title.toLowerCase() : project.name.toLowerCase()
if (completed_project === project_title) {
angular.forEach(project.initiatives, function (initiative) {
if (report.categories.indexOf(initiative) != -1) {
report.initiative = initiative
project.report = report
return
}
})
}
})
})
})
}
},
controllerAs: 'lc'
}
Expand Down