Skip to content

Commit

Permalink
i #285 Bugzilla Notebook Refactor
Browse files Browse the repository at this point in the history
- Two getters were added to replace hard-coded paths: get_bugzilla_issue_path() and get_bugzilla_issue_comment_path()
  • Loading branch information
beydlern committed Oct 9, 2024
1 parent 6724ba1 commit 9ef70d4
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions vignettes/_bugzilla_showcase.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ The parameters necessary for analysis are kept in a project configuration file t
tool <- parse_config("tools.yml")
conf <- parse_config("conf/redhat.yml")
key <- get_bugzilla_project_key(conf)
key <- get_bugzilla_project_key(conf, "project_key_1")
save_issues_path_redhat <- get_bugzilla_issue_path(conf, "project_key_1")
save_issues_comments_path_redhat <- get_bugzilla_issue_comment_path(conf, "project_key_1")
perceval_path <- get_tool_project("perceval", tool)
```

Expand Down Expand Up @@ -173,11 +175,6 @@ limit_upperbound to ensure full bug retrieval. Here, limit_upperbound is set to

The save_issues_path and save_comments_path will be used to store Bugzilla data.

```{r eval = FALSE}
save_issues_path_redhat <- "../../rawdata/bugzilla/redhat/issues"
```


```{r eval = FALSE}
bugzilla_site <- "https://bugzilla.redhat.com/"
start_timestamp <- "2023-05-02T00:48:57Z"
Expand Down Expand Up @@ -232,7 +229,6 @@ More details at: https://github.com/kaiaulu/issues/285
```{r}
bugzilla_site <- "https://bugzilla.redhat.com"
start_timestamp <- "2024-04-27T00:00:00Z"
save_issues_path_redhat <- "../../rawdata/redhat/bugzilla/issues"
```

```{r eval = FALSE}
Expand All @@ -245,10 +241,6 @@ head(bugzillarest_issues_table) %>%
gt(auto_align = FALSE)
```

```{r}
save_issues_comments_path_redhat <- "../../rawdata/redhat/bugzilla/issues_comments"
```

```{r eval = FALSE}
download_bugzilla_rest_issues_comments_by_date(bugzilla_site, start_timestamp, save_issues_comments_path_redhat, key, limit_upperbound=20, comments=TRUE, verbose=TRUE)
```
Expand Down

0 comments on commit 9ef70d4

Please sign in to comment.