Review Board diff file storage

29 views
Skip to first unread message

Justin L

unread,
Aug 1, 2019, 5:20:34 PM8/1/19
to Review Board Community
I am running Review Board version 3.0.14 through the ikatson docker image, and I was wondering where my uploaded diff files are being stored? My file storage setting is set to "Host file system" right now, but I am not sure where they are on my file system.

I know that uploaded files (attached media, other files) are in this path (./var/www/reviewboard/htdocs/media/uploaded/files) on my docker container. However, I don't see the diff files that are created when I start a review request.

David Trowbridge

unread,
Aug 1, 2019, 5:21:11 PM8/1/19
to reviewboard
Justin,

The diffs are stored inside the database, not on the filesystem.

David

On Thu, Aug 1, 2019 at 3:20 PM Justin L <justi...@gmail.com> wrote:
I am running Review Board version 3.0.14 through the ikatson docker image, and I was wondering where my uploaded diff files are being stored? My file storage setting is set to "Host file system" right now, but I am not sure where they are on my file system.

I know that uploaded files (attached media, other files) are in this path (./var/www/reviewboard/htdocs/media/uploaded/files) on my docker container. However, I don't see the diff files that are created when I start a review request.

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/4af0d1ff-ed97-4000-91f9-df0cae6c5d3f%40googlegroups.com.
Message has been deleted

David Trowbridge

unread,
Aug 1, 2019, 5:36:50 PM8/1/19
to reviewboard
They're not really at a "path". The diffs are exploded into an entry per file, deduplicated, and then compressed and stored as rows in a table. If you need the diffs as files, the best way to get them is through the API: https://www.reviewboard.org/docs/manual/3.0/webapi/2.0/resources/diff/

David

On Thu, Aug 1, 2019 at 3:25 PM Justin L <justi...@gmail.com> wrote:
David,

Thank you for the reply. Is there any way to find the path or where exactly these diffs may be?

Thanks


On Thursday, August 1, 2019 at 2:21:11 PM UTC-7, David Trowbridge wrote:
Justin,

The diffs are stored inside the database, not on the filesystem.

David

On Thu, Aug 1, 2019 at 3:20 PM Justin L <justi...@gmail.com> wrote:
I am running Review Board version 3.0.14 through the ikatson docker image, and I was wondering where my uploaded diff files are being stored? My file storage setting is set to "Host file system" right now, but I am not sure where they are on my file system.

I know that uploaded files (attached media, other files) are in this path (./var/www/reviewboard/htdocs/media/uploaded/files) on my docker container. However, I don't see the diff files that are created when I start a review request.

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to revie...@googlegroups.com.

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
Message has been deleted

David Trowbridge

unread,
Aug 1, 2019, 5:47:41 PM8/1/19
to reviewboard
They're all going to be in the diffviewer_rawfilediffdata table, but as I said, the contents there really aren't diff files in a way that can be consumed. What are you trying to do?

David

On Thu, Aug 1, 2019 at 3:37 PM Justin L <justi...@gmail.com> wrote:
David,

Thank you for the quick reply, is there any way of finding the path or where exactly they are located in the database?
The docker image pulls from the postgres:alpine docker image, which is running in the same network as my Review Board container.

Thanks

On Thursday, August 1, 2019 at 2:21:11 PM UTC-7, David Trowbridge wrote:
Justin,

The diffs are stored inside the database, not on the filesystem.

David

On Thu, Aug 1, 2019 at 3:20 PM Justin L <justi...@gmail.com> wrote:
I am running Review Board version 3.0.14 through the ikatson docker image, and I was wondering where my uploaded diff files are being stored? My file storage setting is set to "Host file system" right now, but I am not sure where they are on my file system.

I know that uploaded files (attached media, other files) are in this path (./var/www/reviewboard/htdocs/media/uploaded/files) on my docker container. However, I don't see the diff files that are created when I start a review request.

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to revie...@googlegroups.com.

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
Message has been deleted
Message has been deleted

Justin L

unread,
Aug 1, 2019, 5:55:32 PM8/1/19
to Review Board Community
So, in the Review Board admin, for "File Storage Settings", the files that these refer to are only files that are attached to reviews, and not diffs, correct?

David Trowbridge

unread,
Aug 1, 2019, 5:58:23 PM8/1/19
to reviewboard
That's correct.

David

On Thu, Aug 1, 2019 at 3:55 PM Justin L <justi...@gmail.com> wrote:
So, in the Review Board admin, for "File Storage Settings", the files that these refer to are only files that are attached to reviews, and not diffs, correct?

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.

Justin L

unread,
Aug 1, 2019, 6:08:14 PM8/1/19
to Review Board Community
I see, I just wanted to know, then, where these tables are stored, and not necessarily what they look like or what content they have?


On Thursday, August 1, 2019 at 2:58:23 PM UTC-7, David Trowbridge wrote:
That's correct.

David

On Thu, Aug 1, 2019 at 3:55 PM Justin L <justi...@gmail.com> wrote:
So, in the Review Board admin, for "File Storage Settings", the files that these refer to are only files that are attached to reviews, and not diffs, correct?

--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to revie...@googlegroups.com.

David Trowbridge

unread,
Aug 1, 2019, 6:14:31 PM8/1/19
to reviewboard
I'm not sure what you mean by "where these tables are stored". That's completely up to the database.

David

To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/d87cecbf-8a4b-4fcf-93ee-c66f14725dfe%40googlegroups.com.

Justin L

unread,
Aug 2, 2019, 12:17:17 PM8/2/19
to Review Board Community
I see, thank you so much! (I was able to explore the diffviewer_rawfilediffdata table by linking to a PostgreSQL client) Again, thanks!
Reply all
Reply to author
Forward
0 new messages