Wow!
parent: tbd commit: 6530104
1 | use crate Contents; |
2 | use crate; |
3 | use crate IssuesPluginState; |
4 | use crate:: |
5 | |
6 | CreateIssueRequest, IssueCreationError, IssueEditError, IssueEditRequest, |
7 | IssuePostCommentError, IssuePostCommentRequest, IssueQueryError, QueryIssuesRequest, |
8 | , |
9 | Issue, |
10 | ; |
11 | |
12 | use ; |
13 | use StateExtractor; |
14 | |
15 | pub async |
16 | repository: Repository, |
17 | _request: CreateIssueRequest, |
18 | _state: , |
19 | |
20 | // // TODO: AUTHN & AUTHZ |
21 | // let issue = sqlx::query_as!( |
22 | // IssueRow, |
23 | // r#"INSERT INTO issues VALUES (null, $1, $2, $3, $4, $5) RETURNING *"#, |
24 | // repository.to_string(), |
25 | // request.author.to_string(), |
26 | // 0, |
27 | // request.name, |
28 | // request.contents, |
29 | // ) |
30 | // .fetch_one(&state.pool) |
31 | // .await |
32 | // .as_internal_error_with_context("creating issue in db")?; |
33 | |
34 | // Ok(Issue { |
35 | // repository, |
36 | // id: issue.id as u32, |
37 | // }) |
38 | |
39 | Ok |
40 | |
41 | |
42 | pub async |
43 | _repository: Repository, |
44 | _request: QueryIssuesRequest, |
45 | _state: , |
46 | |
47 | // TODO: AUTHN & AUTHZ |
48 | todo! |
49 | |
50 | |
51 | pub async |
52 | _issue: Issue, |
53 | _request: IssueEditRequest, |
54 | _state: , |
55 | |
56 | // TODO: AUTHN & AUTHZ |
57 | todo! |
58 | |
59 | |
60 | pub async |
61 | _issue: Issue, |
62 | _request: IssuePostCommentRequest, |
63 | _state: , |
64 | |
65 | // TODO: AUTHN & AUTHZ |
66 | todo! |
67 | |
68 | |
69 | pub async |
70 | _issue: Issue, |
71 | _state: , |
72 | |
73 | todo! |
74 | |
75 | |
76 | pub async |
77 | _issue: Issue, |
78 | _state: , |
79 | |
80 | todo! |
81 | |
82 | |
83 | pub async |
84 | _issue: Issue, |
85 | _state: , |
86 | |
87 | todo! |
88 | |
89 | |
90 | pub async |
91 | _issue: Issue, |
92 | _name: Name, |
93 | _state: , |
94 | |
95 | todo! |
96 | |
97 | |
98 | pub async |
99 | _issue: Issue, |
100 | _state: , |
101 | |
102 | todo! |
103 | |
104 | |
105 | pub async |
106 | _issue: Issue, |
107 | _contents: Contents, |
108 | _state: , |
109 | |
110 | todo! |
111 | |
112 | |
113 | pub async |
114 | _issue: Issue, |
115 | _state: , |
116 | |
117 | todo! |
118 | |
119 |