Don't export chat_enabled flag anymore
The chat is already removed for 0.8, so there is no need to still export this data since it can't be imported anyway. Related to #8069 closes #8265
This commit is contained in:
parent
342d4f7fde
commit
8f804e376a
5 changed files with 6 additions and 9 deletions
|
|
@ -3,6 +3,7 @@
|
|||
## Refactor
|
||||
* Cache local posts/comments count for statistics [#8241](https://github.com/diaspora/diaspora/pull/8241)
|
||||
* Fix html-syntax in some handlebars templates [#8251](https://github.com/diaspora/diaspora/pull/8251)
|
||||
* Remove `chat_enabled` flag from archive export [#8265](https://github.com/diaspora/diaspora/pull/8265)
|
||||
|
||||
## Bug fixes
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
module Export
|
||||
class AspectSerializer < ActiveModel::Serializer
|
||||
attributes :name, :chat_enabled
|
||||
attributes :name
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -35,8 +35,7 @@
|
|||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": { "type": "string" },
|
||||
"chat_enabled": { "type": "boolean" }
|
||||
"name": { "type": "string" }
|
||||
},
|
||||
"required": [
|
||||
"name"
|
||||
|
|
|
|||
|
|
@ -46,12 +46,10 @@ describe Diaspora::Exporter do
|
|||
user: {
|
||||
"contact_groups": [
|
||||
{
|
||||
"name": "generic",
|
||||
"chat_enabled": false
|
||||
"name": "generic"
|
||||
},
|
||||
{
|
||||
"name": "Work",
|
||||
"chat_enabled": false
|
||||
"name": "Work"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,8 +6,7 @@ describe Export::AspectSerializer do
|
|||
|
||||
it "has aspect attributes" do
|
||||
expect(serializer.attributes).to eq(
|
||||
name: aspect.name,
|
||||
chat_enabled: aspect.chat_enabled
|
||||
name: aspect.name
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue