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
|
## Refactor
|
||||||
* Cache local posts/comments count for statistics [#8241](https://github.com/diaspora/diaspora/pull/8241)
|
* 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)
|
* 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
|
## Bug fixes
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
module Export
|
module Export
|
||||||
class AspectSerializer < ActiveModel::Serializer
|
class AspectSerializer < ActiveModel::Serializer
|
||||||
attributes :name, :chat_enabled
|
attributes :name
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,7 @@
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"name": { "type": "string" },
|
"name": { "type": "string" }
|
||||||
"chat_enabled": { "type": "boolean" }
|
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"name"
|
"name"
|
||||||
|
|
|
||||||
|
|
@ -46,12 +46,10 @@ describe Diaspora::Exporter do
|
||||||
user: {
|
user: {
|
||||||
"contact_groups": [
|
"contact_groups": [
|
||||||
{
|
{
|
||||||
"name": "generic",
|
"name": "generic"
|
||||||
"chat_enabled": false
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Work",
|
"name": "Work"
|
||||||
"chat_enabled": false
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,7 @@ describe Export::AspectSerializer do
|
||||||
|
|
||||||
it "has aspect attributes" do
|
it "has aspect attributes" do
|
||||||
expect(serializer.attributes).to eq(
|
expect(serializer.attributes).to eq(
|
||||||
name: aspect.name,
|
name: aspect.name
|
||||||
chat_enabled: aspect.chat_enabled
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue