File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ summary <- entities %>%
34
34
arrange(n )
35
35
36
36
confluence_id <- function (node_or_nodeset ) {
37
- xml_find_first(node_or_nodeset , ' id[@name="id"] ' ) %> %
37
+ xml_find_first(node_or_nodeset , ' id' ) %> %
38
38
xml_text
39
39
}
40
40
@@ -159,3 +159,18 @@ stopifnot(bodies %>%
159
159
filter(! is.na(content.CustomContentEntityObject )) %> %
160
160
filter(type != " CustomContentEntityObject" ) %> %
161
161
nrow == 0 )
162
+
163
+ user2content <- {
164
+ ns <- entities_xml %> %
165
+ xml_find_all(' //object[@class="User2ContentRelationEntity"]' )
166
+ tibble(u2c_id = ns %> % confluence_id ) %> %
167
+ mutate(ns %> % props_tibble ) %> %
168
+ mutate(ns %> % classful_props_tibble )
169
+ }
170
+
171
+ users <- {
172
+ ns <- entities_xml %> %
173
+ xml_find_all(' //object[@class="ConfluenceUserImpl"]' )
174
+ tibble(user_key = ns %> % confluence_id ) %> %
175
+ mutate(ns %> % props_tibble )
176
+ }
You can’t perform that action at this time.
0 commit comments